mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48:49 -05:00
c-ares: honor port numbers in CURLOPT_DNS_SERVERS
By using ares_set_servers_ports_csv on new enough c-ares. Fixes #4066 Closes #4067
This commit is contained in:
parent
1862cacd03
commit
d331227cf0
@ -734,7 +734,11 @@ CURLcode Curl_set_dns_servers(struct Curl_easy *data,
|
||||
return CURLE_OK;
|
||||
|
||||
#if (ARES_VERSION >= 0x010704)
|
||||
#if (ARES_VERSION >= 0x010b00)
|
||||
ares_result = ares_set_servers_ports_csv(data->state.resolver, servers);
|
||||
#else
|
||||
ares_result = ares_set_servers_csv(data->state.resolver, servers);
|
||||
#endif
|
||||
switch(ares_result) {
|
||||
case ARES_SUCCESS:
|
||||
result = CURLE_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user