Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-03-13 17:20:34 +0300
committerIgor Sysoev <igor@sysoev.ru>2009-03-13 17:20:34 +0300
commit6d94b51f0bda79fba3a9d122537f0cfac412bb34 (patch)
treecb97419433f565c89dcc7a4d1f93a322fea9d2a0 /src/http/ngx_http.c
parent648b0dcf282a3f1b75acfb9775c7fb00821454b9 (diff)
ipv6only
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r--src/http/ngx_http.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c
index 626686ca8..d519bf981 100644
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1768,6 +1768,10 @@ ngx_http_add_listening(ngx_conf_t *cf, ngx_http_conf_addr_t *addr)
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;
}