← Commit list

65597f8fc9

Daniel Stenberg
Daniel Stenberg
2025-12-07
SUCCESS Duration: 220s

Subject

noproxy: fix build on systems without IPv6

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/noproxy.c+2 -0
@@ -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] == '.')