mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
noproxy: fix builds without AF_INET6
Regression from 1e9a538e05
Reviewed-by: Daniel Stenberg
Closes #9778
This commit is contained in:
parent
1e9a538e05
commit
36474f1050
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user