mirror of
https://github.com/curl/curl.git
synced 2026-07-23 13:07:17 +03:00
noproxy: fix build on systems without IPv6
Follow-up to ff2aaed9ba
Reported-by: Harry Sintonen
Closes #19860
This commit is contained in:
parent
f4b56f34ba
commit
65597f8fc9
1 changed files with 2 additions and 0 deletions
|
|
@ -211,8 +211,10 @@ bool Curl_check_noproxy(const char *name, const char *no_proxy)
|
|||
namelen = strlen(name);
|
||||
if(curlx_inet_pton(AF_INET, name, &address) == 1)
|
||||
type = TYPE_IPV4;
|
||||
#ifdef USE_IPV6
|
||||
else if(curlx_inet_pton(AF_INET6, name, &address) == 1)
|
||||
type = TYPE_IPV6;
|
||||
#endif
|
||||
else {
|
||||
/* ignore trailing dots in the hostname */
|
||||
if(name[namelen - 1] == '.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue