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?
to your account
Originally posted by marsom August 7, 2023
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.
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
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
cf-haproxy: make CURLOPT_HAPROXY_CLIENT_IP set the *source* IP
... as documented.
Update test 3201 and 3202 accordingly.
Reported-by: Markus Sommer
Apologies for this and thank you @bagder — you were faster than me to fix it… :)
Successfully merging a pull request may close this issue.