We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally posted by marsom August 7, 2023 Hi,
ok I'm probably wrong, I expected the from following curl:
curl --ipv4 --haproxy-clientip 192.168.1.2 http://localhost:8080
to set the client ip in the proxy protocol header to 192.168.1.2. in the proxy protocol naming for me its the source ip not the destination.
but
curl/lib/cf-haproxy.c
Line 91 in 78d6232
sets the destination address.
when i read ie.
i think the client ip = source ip
if I dump the payload from the command obove i get
PROXY TCP4 127.0.0.1 192.168.1.2 62190 8080 GET / HTTP/1.1 Host: localhost:8080 User-Agent: curl/8.2.1 Accept: */* ...
The text was updated successfully, but these errors were encountered:
/cc @RaitoBezarius
Sorry, something went wrong.
cf-haproxy: make CURLOPT_HAPROXY_CLIENT_IP set the *source* IP
6574efd
... as documented. Update test 3201 and 3202 accordingly. Reported-by: Markus Sommer Fixes #11619
f0fed4e
Apologies for this and thank you @bagder — you were faster than me to fix it… :)
Successfully merging a pull request may close this issue.
Discussed in #11613
Originally posted by marsom August 7, 2023
Hi,
ok I'm probably wrong, I expected the from following curl:
to set the client ip in the proxy protocol header to 192.168.1.2. in the proxy protocol naming for me its the source ip not the destination.
but
curl/lib/cf-haproxy.c
Line 91 in 78d6232
sets the destination address.
when i read ie.
i think the client ip = source ip
if I dump the payload from the command obove i get
The text was updated successfully, but these errors were encountered: