url: exclude zonefrom_url when no ipv6 is available

Closes #8439
This commit is contained in:
Daniel Stenberg 2022-02-11 14:05:57 +01:00
parent 7e65d91071
commit c3331a029c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1859,6 +1859,7 @@ CURLcode Curl_uc_to_curlcode(CURLUcode uc)
}
}
#ifdef ENABLE_IPV6
/*
* If the URL was set with an IPv6 numerical address with a zone id part, set
* the scope_id based on that!
@ -1908,6 +1909,9 @@ static void zonefrom_url(CURLU *uh, struct Curl_easy *data,
free(zoneid);
}
}
#else
#define zonefrom_url(a,b,c) Curl_nop_stmt
#endif
/*
* Parse URL and fill in the relevant members of the connection struct.