mirror of
https://github.com/curl/curl.git
synced 2026-04-15 18:31:46 +03: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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue