diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-03-13 14:20:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-03-13 14:20:34 +0000 |
commit | 6d94b51f0bda79fba3a9d122537f0cfac412bb34 (patch) | |
tree | cb97419433f565c89dcc7a4d1f93a322fea9d2a0 /src/http/ngx_http.c | |
parent | 648b0dcf282a3f1b75acfb9775c7fb00821454b9 (diff) | |
download | nginx-6d94b51f0bda79fba3a9d122537f0cfac412bb34.tar.gz nginx-6d94b51f0bda79fba3a9d122537f0cfac412bb34.zip |
ipv6only
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r-- | src/http/ngx_http.c | 4 |
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; } |