Mercurial > hg > nginx-ranges
diff src/mail/ngx_mail_core_module.c @ 457:76a79816b771 NGINX_0_7_36
nginx 0.7.36
*) Feature: a preliminary IPv6 support; the "listen" directive of the
HTTP module supports IPv6.
*) Bugfix: the $ancient_browser variable did not work for browsers
preset by a "modern_browser" directives.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 21 Feb 2009 00:00:00 +0300 |
parents | a094317ba307 |
children | 6484cbba0222 |
line wrap: on
line diff
--- a/src/mail/ngx_mail_core_module.c +++ b/src/mail/ngx_mail_core_module.c @@ -305,6 +305,11 @@ ngx_mail_core_listen(ngx_conf_t *cf, ngx return NGX_CONF_ERROR; } + if (u.family != AF_INET) { + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "listen supports IPv4 only"); + return NGX_CONF_ERROR; + } + cmcf = ngx_mail_conf_get_module_main_conf(cf, ngx_mail_core_module); imls = cmcf->listen.elts;