New issue
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
haproxy: add --haproxy-clientip flag to spoof client IPs #10779
Conversation
ed3cb80
to
4a4cd5a
Compare
4a4cd5a
to
0872d61
Compare
0872d61
to
1a7ef3d
Compare
@bagder Hi there, I updated the PR and added some test cases, is there anything else to do so the contribution can be accepted? |
(I see that my tests needs to be fixed too.) |
1a7ef3d
to
f5abf6a
Compare
The test 1912 problem can be fixed with this: diff --git a/include/curl/typecheck-gcc.h b/include/curl/typecheck-gcc.h
index bc8d7a78c..b880f3dc6 100644
--- a/include/curl/typecheck-gcc.h
+++ b/include/curl/typecheck-gcc.h
@@ -278,10 +278,11 @@ CURLWARNING(_curl_easy_getinfo_err_curl_off_t,
(option) == CURLOPT_EGDSOCKET || \
(option) == CURLOPT_FTP_ACCOUNT || \
(option) == CURLOPT_FTP_ALTERNATIVE_TO_USER || \
(option) == CURLOPT_FTPPORT || \
(option) == CURLOPT_HSTS || \
+ (option) == CURLOPT_HAPROXY_CLIENT_IP || \
(option) == CURLOPT_INTERFACE || \
(option) == CURLOPT_ISSUERCERT || \
(option) == CURLOPT_KEYPASSWD || \
(option) == CURLOPT_KRBLEVEL || \
(option) == CURLOPT_LOGIN_OPTIONS || \ |
The 1139 test failure happens because you have not created a |
f5abf6a
to
e1375e6
Compare
Thank you for the guidance, I have fixed the remaining issues, I am checking the CI on my side but hopefully should be good. |
e1375e6
to
55bf56b
Compare
Hmm, it's unclear to me why 3201/3022 are failing now. Testing manually seems to work. |
65f837b
to
2835f34
Compare
1a31724
to
cfa44f1
Compare
@bagder I addressed the comments, rebased the PR, let me know if I can do anything more. :) |
cfa44f1
to
eb677ab
Compare
33be06a
to
b433705
Compare
b433705
to
0921fa8
Compare
Thanks! |
CURLOPT_HAPROXY_CLIENT_IP in the library Closes curl#10779
This PR enable
--haproxy-clientip
as per TODO item 5.2 (#5125).I'm not certain yet I have done the appropriate things yet. I will add tests and docs soon. :)