From a35eaccdec4788e8fb9a883b26fc7c4dcfe1d8f8 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 21 Feb 2009 07:02:02 +0000 Subject: a prelimiary IPv6 support, HTTP listen --- src/mail/ngx_mail_core_module.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mail') diff --git a/src/mail/ngx_mail_core_module.c b/src/mail/ngx_mail_core_module.c index 10e6c8b5e..a9cd6a4da 100644 --- 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_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; -- cgit