mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
parent
9744614434
commit
d68fc02972
@ -633,7 +633,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
|
|||||||
|
|
||||||
*waitp = 0; /* default to synchronous response */
|
*waitp = 0; /* default to synchronous response */
|
||||||
|
|
||||||
#ifdef ENABLE_IPV6 /* CURLRES_IPV6 */
|
#ifdef ENABLE_IPV6
|
||||||
switch(conn->ip_version) {
|
switch(conn->ip_version) {
|
||||||
default:
|
default:
|
||||||
#if ARES_VERSION >= 0x010601
|
#if ARES_VERSION >= 0x010601
|
||||||
@ -649,7 +649,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
|
|||||||
family = PF_INET6;
|
family = PF_INET6;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif /* CURLRES_IPV6 */
|
#endif /* ENABLE_IPV6 */
|
||||||
|
|
||||||
bufp = strdup(hostname);
|
bufp = strdup(hostname);
|
||||||
if(bufp) {
|
if(bufp) {
|
||||||
@ -670,7 +670,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
|
|||||||
|
|
||||||
/* initial status - failed */
|
/* initial status - failed */
|
||||||
res->last_status = ARES_ENOTFOUND;
|
res->last_status = ARES_ENOTFOUND;
|
||||||
#ifdef ENABLE_IPV6 /* CURLRES_IPV6 */
|
#ifdef ENABLE_IPV6
|
||||||
if(family == PF_UNSPEC) {
|
if(family == PF_UNSPEC) {
|
||||||
if(Curl_ipv6works(conn)) {
|
if(Curl_ipv6works(conn)) {
|
||||||
res->num_pending = 2;
|
res->num_pending = 2;
|
||||||
@ -690,7 +690,7 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif /* CURLRES_IPV6 */
|
#endif /* ENABLE_IPV6 */
|
||||||
{
|
{
|
||||||
res->num_pending = 1;
|
res->num_pending = 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user