mirror of
https://github.com/curl/curl.git
synced 2026-07-27 10:17:22 +03:00
CURLOPT_HAPROXYPROTOCOL: support the HAProxy PROXY protocol
Add --haproxy-protocol for the command line tool Closes #2162
This commit is contained in:
parent
9572831b04
commit
6baeb6df35
16 changed files with 261 additions and 1 deletions
|
|
@ -112,6 +112,7 @@ static const struct LongShort aliases[]= {
|
|||
{"*x", "krb", ARG_STRING},
|
||||
{"*x", "krb4", ARG_STRING},
|
||||
/* 'krb4' is the previous name */
|
||||
{"*X", "haproxy-protocol", ARG_BOOL},
|
||||
{"*y", "max-filesize", ARG_STRING},
|
||||
{"*z", "disable-eprt", ARG_BOOL},
|
||||
{"*Z", "eprt", ARG_BOOL},
|
||||
|
|
@ -779,6 +780,9 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
else
|
||||
return PARAM_LIBCURL_DOESNT_SUPPORT;
|
||||
break;
|
||||
case 'X': /* --haproxy-protocol */
|
||||
config->haproxy_protocol = toggle;
|
||||
break;
|
||||
case 'y': /* --max-filesize */
|
||||
{
|
||||
curl_off_t value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue