mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
- When building with c-ares 1.6.1 (not yet released) or later and IPv6 support
enabled, we can now take advantage of its brand new AF_UNSPEC support in ares_gethostbyname(). This makes test case 241 finally run fine for me wtih this setup since it now parses the "::1 ip6-localhost" line fine in my /etc/hosts file!
This commit is contained in:
parent
a2256e899b
commit
dcf92bffd2
7
CHANGES
7
CHANGES
@ -6,6 +6,13 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel Stenberg (31 Jan 2009)
|
||||||
|
- When building with c-ares 1.6.1 (not yet released) or later and IPv6 support
|
||||||
|
enabled, we can now take advantage of its brand new AF_UNSPEC support in
|
||||||
|
ares_gethostbyname(). This makes test case 241 finally run fine for me wtih
|
||||||
|
this setup since it now parses the "::1 ip6-localhost" line fine in my
|
||||||
|
/etc/hosts file!
|
||||||
|
|
||||||
Daniel Stenberg (30 Jan 2009)
|
Daniel Stenberg (30 Jan 2009)
|
||||||
- Scott Cantor filed bug report #2550061
|
- Scott Cantor filed bug report #2550061
|
||||||
(http://curl.haxx.se/bug/view.cgi?id=2550061) mentioning that I failed to
|
(http://curl.haxx.se/bug/view.cgi?id=2550061) mentioning that I failed to
|
||||||
|
@ -16,6 +16,7 @@ This release includes the following changes:
|
|||||||
o Added CURLOPT_SOCKS5_GSSAPI_SERVICE and CURLOPT_SOCKS5_GSSAPI_NEC - with
|
o Added CURLOPT_SOCKS5_GSSAPI_SERVICE and CURLOPT_SOCKS5_GSSAPI_NEC - with
|
||||||
the corresponding curl options --socks5-gssapi-service and
|
the corresponding curl options --socks5-gssapi-service and
|
||||||
--socks5-gssapi-nec
|
--socks5-gssapi-nec
|
||||||
|
o Improved IPv6 support when built with with c-ares >= 1.6.1
|
||||||
|
|
||||||
This release includes the following bugfixes:
|
This release includes the following bugfixes:
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -326,11 +326,14 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch(data->set.ip_version) {
|
switch(data->set.ip_version) {
|
||||||
|
default:
|
||||||
|
#if ARES_VERSION >= 0x010601
|
||||||
|
family = PF_UNSPEC; /* supported by c-ares since 1.6.1, so for older
|
||||||
|
c-ares versions this just falls through and defaults
|
||||||
|
to PF_INET */
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
case CURL_IPRESOLVE_V4:
|
case CURL_IPRESOLVE_V4:
|
||||||
default: /* By default we try ipv4, as PF_UNSPEC isn't supported by c-ares.
|
|
||||||
This is a bit disturbing since users may very well assume that
|
|
||||||
both kinds of addresses are asked for, but the problem is really
|
|
||||||
in c-ares' end here. */
|
|
||||||
family = PF_INET;
|
family = PF_INET;
|
||||||
break;
|
break;
|
||||||
case CURL_IPRESOLVE_V6:
|
case CURL_IPRESOLVE_V6:
|
||||||
|
Loading…
Reference in New Issue
Block a user