From 01a49a7626ee4a226cd0b50d70591ab147d60ee0 Mon Sep 17 00:00:00 2001 From: Luo Jinghua Date: Tue, 7 Jun 2016 18:11:37 +0800 Subject: resolve: add support for IPv6 DNS64/NAT64 Networks on OS X + iOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/curl_setup.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/curl_setup.h') 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 @@ -221,6 +221,15 @@ # include "setup-vms.h" #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, -- cgit v1.2.1