diff options
Diffstat (limited to 'src/stream')
| -rw-r--r-- | src/stream/ngx_stream.c | 2 | ||||
| -rw-r--r-- | src/stream/ngx_stream.h | 2 | ||||
| -rw-r--r-- | src/stream/ngx_stream_core_module.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/stream/ngx_stream.c b/src/stream/ngx_stream.c index 7312c3e2e..b982c1fee 100644 --- a/src/stream/ngx_stream.c +++ b/src/stream/ngx_stream.c @@ -506,7 +506,7 @@ ngx_stream_optimize_servers(ngx_conf_t *cf, ngx_array_t *ports) ls->keepcnt = addr[i].opt.tcp_keepcnt; #endif -#if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) +#if (NGX_HAVE_INET6) ls->ipv6only = addr[i].opt.ipv6only; #endif diff --git a/src/stream/ngx_stream.h b/src/stream/ngx_stream.h index a2644a73a..7cb8ae31d 100644 --- a/src/stream/ngx_stream.h +++ b/src/stream/ngx_stream.h @@ -52,7 +52,7 @@ typedef struct { #if (NGX_STREAM_SSL) unsigned ssl:1; #endif -#if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) +#if (NGX_HAVE_INET6) unsigned ipv6only:1; #endif #if (NGX_HAVE_REUSEPORT) diff --git a/src/stream/ngx_stream_core_module.c b/src/stream/ngx_stream_core_module.c index 23644f3d2..f7870eed5 100644 --- a/src/stream/ngx_stream_core_module.c +++ b/src/stream/ngx_stream_core_module.c @@ -624,7 +624,7 @@ ngx_stream_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ls->wildcard = u.wildcard; ls->ctx = cf->ctx; -#if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) +#if (NGX_HAVE_INET6) ls->ipv6only = 1; #endif |
