mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 21:13:08 +00:00
Realip: detect duplicate real_ip_header directive.
This commit is contained in:
parent
06176bce91
commit
adfd0b065c
1 changed files with 4 additions and 0 deletions
|
|
@ -387,6 +387,10 @@ ngx_http_realip(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||
|
||||
ngx_str_t *value;
|
||||
|
||||
if (rlcf->type != NGX_CONF_UNSET_UINT) {
|
||||
return "is duplicate";
|
||||
}
|
||||
|
||||
value = cf->args->elts;
|
||||
|
||||
if (ngx_strcmp(value[1].data, "X-Real-IP") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue