Files
nats-server/server
Ivan Kozlovic 8d6eacc245 Add X-Forwarded-For IP to the client's remote address
Instead of replacing connection's host with value specified by
this header, we will simply add the address to the logging only.
So instead of having something like:
```
192.168.1.1:5678 - wid:10 - Client connection created
```
we could have:
```
1.2.3.4/192.168.1.1:5678 - wid:10 - Client connection created
```
As seen above, this PR simply prefixes the connection's remote address
with the header's value (if a valid IP).

Related to #2734
Resolves #2767

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-01-03 11:56:12 -07:00
..
2021-11-15 17:23:08 -07:00
2021-11-15 17:23:08 -07:00
2021-12-14 10:00:54 -07:00
2021-12-16 16:53:20 -05:00
2021-12-27 12:04:39 -08:00
2021-11-15 17:23:08 -07:00
2021-11-15 17:23:08 -07:00
2021-11-15 17:23:08 -07:00
2020-02-25 19:53:09 -05:00
2021-11-04 14:26:01 -07:00
2021-12-14 10:00:54 -07:00
2021-11-15 17:23:08 -07:00
2021-12-16 16:53:20 -05:00
2021-12-29 08:26:10 -08:00
2021-12-16 16:53:20 -05:00
2021-12-16 16:53:20 -05:00
2021-01-14 01:14:52 -08:00
2021-01-14 01:14:52 -08:00
2019-05-06 15:41:38 -07:00
2021-12-16 16:53:20 -05:00
2021-12-16 16:53:20 -05:00
2021-11-04 14:26:01 -07:00
2020-06-12 10:03:47 -06:00
2021-12-16 16:53:20 -05:00
2021-12-16 16:53:20 -05:00
2021-11-15 17:23:08 -07:00
2019-11-14 20:05:32 -07:00
2021-11-15 17:23:08 -07:00
2021-11-15 17:23:08 -07:00
2021-09-01 14:55:26 -07:00
2021-11-15 17:23:08 -07:00
2019-12-12 11:58:24 -07:00
2021-10-26 20:09:00 -07:00
2021-12-16 16:53:20 -05:00
2021-09-13 15:22:05 +03:00