]> git.kaiwu.me - nginx.git/commit
Modules compatibility: removed unneeded IPV6_V6ONLY checks.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 3 Oct 2016 12:58:25 +0000 (15:58 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 3 Oct 2016 12:58:25 +0000 (15:58 +0300)
commit0a961a09171fc1de3f3a70aa6b15e29d3882f7f0
tree2121db4e34c3ed4d7512fb9d60bda49fb3fc7a43
parenta7f80ec354dd470a1da09585f8a74dd73d3ce883
Modules compatibility: removed unneeded IPV6_V6ONLY checks.

The IPV6_V6ONLY macro is now checked only while parsing appropriate flag
and when using the macro.

The ipv6only field in listen structures is always initialized to 1,
even if not supported on a given platform.  This is expected to prevent
a module compiled without IPV6_V6ONLY from accidentally creating dual
sockets if loaded into main binary with proper IPV6_V6ONLY support.
src/core/ngx_connection.h
src/core/ngx_module.h
src/http/ngx_http.c
src/http/ngx_http_core_module.c
src/http/ngx_http_core_module.h
src/mail/ngx_mail.c
src/mail/ngx_mail.h
src/mail/ngx_mail_core_module.c
src/stream/ngx_stream.c
src/stream/ngx_stream.h
src/stream/ngx_stream_core_module.c