mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:31:42 +03:00
setopt: disable CURLOPT_HAPROXY_CLIENT_IP on NULL
As documented. Reported-by: Stanislav Fort (Aisle Research) Closes #19434
This commit is contained in:
parent
2701ac6a4d
commit
c791223743
1 changed files with 3 additions and 2 deletions
|
|
@ -2169,8 +2169,9 @@ static CURLcode setopt_cptr(struct Curl_easy *data, CURLoption option,
|
|||
* Set the client IP to send through HAProxy PROXY protocol
|
||||
*/
|
||||
result = Curl_setstropt(&s->str[STRING_HAPROXY_CLIENT_IP], ptr);
|
||||
/* enable the HAProxy protocol */
|
||||
s->haproxyprotocol = TRUE;
|
||||
|
||||
/* enable the HAProxy protocol if an IP is provided */
|
||||
s->haproxyprotocol = !!s->str[STRING_HAPROXY_CLIENT_IP];
|
||||
break;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue