mirror of
https://github.com/curl/curl.git
synced 2026-08-06 13:26:14 +03:00
haproxy: add --haproxy-clientip flag to spoof client IPs
CURLOPT_HAPROXY_CLIENT_IP in the library Closes #10779
This commit is contained in:
parent
9ad23c38e5
commit
0a75964d0d
21 changed files with 267 additions and 4 deletions
|
|
@ -122,6 +122,7 @@ static const struct LongShort aliases[]= {
|
|||
{"*x", "krb4", ARG_STRING},
|
||||
/* 'krb4' is the previous name */
|
||||
{"*X", "haproxy-protocol", ARG_BOOL},
|
||||
{"*P", "haproxy-clientip", ARG_STRING},
|
||||
{"*y", "max-filesize", ARG_STRING},
|
||||
{"*z", "disable-eprt", ARG_BOOL},
|
||||
{"*Z", "eprt", ARG_BOOL},
|
||||
|
|
@ -1055,6 +1056,9 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
case 'X': /* --haproxy-protocol */
|
||||
config->haproxy_protocol = toggle;
|
||||
break;
|
||||
case 'P': /* --haproxy-clientip */
|
||||
GetStr(&config->haproxy_clientip, nextarg);
|
||||
break;
|
||||
case 'y': /* --max-filesize */
|
||||
{
|
||||
curl_off_t value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue