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_addrinfo.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_addrinfo.h')
-rw-r--r-- | lib/curl_addrinfo.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/curl_addrinfo.h b/lib/curl_addrinfo.h index 01f286478..1a681e61e 100644 --- a/lib/curl_addrinfo.h +++ b/lib/curl_addrinfo.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -99,4 +99,12 @@ curl_dogetaddrinfo(const char *hostname, int line, const char *source); #endif +#ifdef HAVE_GETADDRINFO +#ifdef USE_RESOLVE_ON_IPS +void Curl_addrinfo_set_port(Curl_addrinfo *addrinfo, int port); +#else +#define Curl_addrinfo_set_port(x,y) +#endif +#endif + #endif /* HEADER_CURL_ADDRINFO_H */ |