From: Daniel Stenberg Date: Sat, 6 Dec 2025 23:03:56 +0000 (+0100) Subject: noproxy: fix build on systems without IPv6 X-Git-Tag: rc-8_18_0-2~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65597f8fc92671400ddd3572749e58b07c3c8477;p=thirdparty%2Fcurl.git noproxy: fix build on systems without IPv6 Follow-up to ff2aaed9ba6f186feb57f89fc6854 Reported-by: Harry Sintonen Closes #19860 --- diff --git a/lib/noproxy.c b/lib/noproxy.c index e0d0877fdc..86acf8ba2b 100644 --- a/lib/noproxy.c +++ b/lib/noproxy.c @@ -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] == '.')