diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2016-06-07 18:11:37 +0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-06-07 20:39:05 +0200 |
commit | 01a49a7626ee4a226cd0b50d70591ab147d60ee0 (patch) | |
tree | ef54a49ff290e8c432570d6dc081ebb6c56f420d /lib/curl_setup.h | |
parent | 9b6d3a662ea81ec3bbb12002ca79fd27d750671e (diff) | |
download | curl-01a49a7626ee4a226cd0b50d70591ab147d60ee0.tar.gz |
resolve: add support for IPv6 DNS64/NAT64 Networks on OS X + iOS
Use getaddrinfo() to resolve the IPv4 address literal on iOS/Mac OS X.
If the current network interface doesn’t support IPv4, but supports
IPv6, NAT64, and DNS64.
Closes #866
Fixes #863
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r-- | lib/curl_setup.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h index d78873fe5..7dcc4c4cd 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -222,6 +222,15 @@ #endif /* + * Use getaddrinfo to resolve the IPv4 address literal. If the current network + * interface doesn’t support IPv4, but supports IPv6, NAT64, and DNS64, + * performing this task will result in a synthesized IPv6 address. + */ +#ifdef __APPLE__ +#define USE_RESOLVE_ON_IPS 1 +#endif + +/* * Include header files for windows builds before redefining anything. * Use this preprocessor block only to include or exclude windows.h, * winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |