comparison src/mail/ngx_mail_core_module.c @ 2512:2e91aecb9e57

a prelimiary IPv6 support, HTTP listen
author Igor Sysoev <igor@sysoev.ru>
date Sat, 21 Feb 2009 07:02:02 +0000
parents 109849282793
children 268d8d3faa34
comparison
equal deleted inserted replaced
2511:f91c5c964e61 2512:2e91aecb9e57
303 } 303 }
304 304
305 return NGX_CONF_ERROR; 305 return NGX_CONF_ERROR;
306 } 306 }
307 307
308 if (u.family != AF_INET) {
309 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "listen supports IPv4 only");
310 return NGX_CONF_ERROR;
311 }
312
308 cmcf = ngx_mail_conf_get_module_main_conf(cf, ngx_mail_core_module); 313 cmcf = ngx_mail_conf_get_module_main_conf(cf, ngx_mail_core_module);
309 314
310 imls = cmcf->listen.elts; 315 imls = cmcf->listen.elts;
311 316
312 for (i = 0; i < cmcf->listen.nelts; i++) { 317 for (i = 0; i < cmcf->listen.nelts; i++) {