mirror of
https://github.com/nginx/nginx.git
synced 2025-08-01 11:16:14 +08:00
mail_core: don't let the well-known port in the "listen" directive to
override the already set "protocol".
This commit is contained in:
parent
89ad2e91e5
commit
9aac01a76e
@ -378,6 +378,7 @@ ngx_mail_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
ls->ipv6only = 1;
|
ls->ipv6only = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (cscf->protocol == NULL) {
|
||||||
for (m = 0; ngx_modules[m]; m++) {
|
for (m = 0; ngx_modules[m]; m++) {
|
||||||
if (ngx_modules[m]->type != NGX_MAIL_MODULE) {
|
if (ngx_modules[m]->type != NGX_MAIL_MODULE) {
|
||||||
continue;
|
continue;
|
||||||
@ -396,6 +397,7 @@ ngx_mail_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 2; i < cf->args->nelts; i++) {
|
for (i = 2; i < cf->args->nelts; i++) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user