reverseproxy icon indicating copy to clipboard operation
reverseproxy copied to clipboard

X-Forwarded-For generated header is incorrect if previous values exist

Open hmoragrega opened this issue 4 years ago • 1 comments

If the request that we have to proxy already has an IP in the X-Forwarded-For header the concatenation is wrong

Example instead of

1.1.1.1, 8.8.8.8

It forwards

1.1.1.18.8.8.8

Example:

https://play.golang.org/p/lVQNcaZ_kmy

hmoragrega avatar Apr 21 '21 14:04 hmoragrega

I see there's a fix in master already but not released yet

hmoragrega avatar Apr 21 '21 14:04 hmoragrega