mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
check duplicate resolver
This commit is contained in:
parent
a4d00f1c97
commit
73eb97f500
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue