X-Git-Url: http://git.rot13.org/?p=nginx.git;a=blobdiff_plain;f=nginx%2Fsrc%2Fmail%2Fngx_mail_core_module.c;h=a9cd6a4da45be34db4b71d2c40f8c21648d87397;hp=10e6c8b5e824dd9ade3bc3ed459480fd4257b2ef;hb=refs%2Ftags%2Fnginx;hpb=b9838be4675dbc0f555e860602de1f96310812ff diff --git a/nginx/src/mail/ngx_mail_core_module.c b/nginx/src/mail/ngx_mail_core_module.c index 10e6c8b..a9cd6a4 100644 --- a/nginx/src/mail/ngx_mail_core_module.c +++ b/nginx/src/mail/ngx_mail_core_module.c @@ -305,6 +305,11 @@ ngx_mail_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) 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;