Skip to content

Commit

Permalink
resolve: really suppport IPv6 only networks on iOS/OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeker999 committed Jun 7, 2016
1 parent 01a49a7 commit 4b9c912
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/asyn-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,9 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
/* This is an IPv6 address literal */
return Curl_ip2addr(AF_INET6, &in6, hostname, port);

#endif /* CURLRES_IPV6 */
#endif /* USE_RESOLVE_ON_IPS */

/*
* Check if a limited name resolve has been requested.
*/
Expand All @@ -636,9 +639,6 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
/* The stack seems to be a non-IPv6 one */
pf = PF_INET;

#endif /* CURLRES_IPV6 */
#endif /* USE_RESOLVE_ON_IPS */

memset(&hints, 0, sizeof(hints));
hints.ai_family = pf;
hints.ai_socktype = conn->socktype;
Expand Down

0 comments on commit 4b9c912

Please sign in to comment.