diff src/mail/ngx_mail_core_module.c @ 511:1e91f9968443

Merge with 0.7.47.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 05 Apr 2009 03:35:26 +0400
parents 9205084bd1f3 76a79816b771
children 9773720b845e
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;