mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
check duplicate resolver
This commit is contained in:
parent
a4d00f1c97
commit
73eb97f500
@ -422,6 +422,10 @@ ngx_mail_core_resolver(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
|
||||
value = cf->args->elts;
|
||||
|
||||
if (cscf->resolver != NGX_CONF_UNSET_PTR) {
|
||||
return "is duplicate";
|
||||
}
|
||||
|
||||
if (ngx_strcmp(value[1].data, "off") == 0) {
|
||||
cscf->resolver = NULL;
|
||||
return NGX_CONF_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user