diff src/http/ngx_http.c @ 2562:c352c419be85

ipv6only
author Igor Sysoev <igor@sysoev.ru>
date Fri, 13 Mar 2009 14:20:34 +0000
parents 2749e4bf6af0
children 684ca3b0ae14
line wrap: on
line diff
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1768,6 +1768,10 @@ ngx_http_add_listening(ngx_conf_t *cf, n
     ls->deferred_accept = addr->listen_conf->deferred_accept;
 #endif
 
+#if (NGX_HAVE_INET6 && defined IPV6_V6ONLY)
+    ls->ipv6only = addr->listen_conf->ipv6only;
+#endif
+
     return ls;
 }