summaryrefslogtreecommitdiffhomepage
path: root/auto/unix
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2012-12-17 12:08:53 +0000
committerRuslan Ermilov <ru@nginx.com>2012-12-17 12:08:53 +0000
commitb8a90c69039046ff6196b9e174e21c5377ed07dd (patch)
tree8ce88db505f3f1bc0382e3cfb7baedcb79260ca3 /auto/unix
parent2f8c1b73b8a6ba05219fa2e3643f1a4f42308043 (diff)
downloadnginx-b8a90c69039046ff6196b9e174e21c5377ed07dd.tar.gz
nginx-b8a90c69039046ff6196b9e174e21c5377ed07dd.tar.bz2
Implemented IPv6 support for URLs specified using domain names.
This includes "debug_connection", upstreams, "proxy_pass", etc. (ticket #92) To preserve compatibility, "listen" specified with a domain name selects the first IPv4 address, if available. If not available, the first IPv6 address will be used (ticket #186).
Diffstat (limited to 'auto/unix')
-rwxr-xr-xauto/unix14
1 files changed, 14 insertions, 0 deletions
diff --git a/auto/unix b/auto/unix
index b0a0e4c88..cd4209e7b 100755
--- a/auto/unix
+++ b/auto/unix
@@ -778,3 +778,17 @@ ngx_feature_test="struct stat sb;
openat(AT_FDCWD, \".\", O_RDONLY|O_NOFOLLOW);
fstatat(AT_FDCWD, \".\", &sb, AT_SYMLINK_NOFOLLOW);"
. auto/feature
+
+
+ngx_feature="getaddrinfo()"
+ngx_feature_name="NGX_HAVE_GETADDRINFO"
+ngx_feature_run=no
+ngx_feature_incs="#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netdb.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test='struct addrinfo *res;
+ if (getaddrinfo("localhost", NULL, NULL, &res) != 0) return 1;
+ freeaddrinfo(res)'
+. auto/feature