noproxy: fix builds without AF_INET6

Regression from 1e9a538e05

Reviewed-by: Daniel Stenberg

Closes #9778
This commit is contained in:
Viktor Szakats 2022-10-21 19:06:25 +00:00
parent 1e9a538e05
commit 36474f1050
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -70,6 +70,7 @@ UNITTEST bool Curl_cidr6_match(const char *ipv6,
const char *network,
unsigned int bits)
{
#ifdef ENABLE_IPV6
int bytes;
int rest;
unsigned char address[16];
@ -92,6 +93,9 @@ UNITTEST bool Curl_cidr6_match(const char *ipv6,
return FALSE;
return TRUE;
#else
return FALSE;
#endif
}
enum nametype {