allow to work single "set_real_ip_from unix:"
This commit is contained in:
parent
2a2237f139
commit
ca6e7a42b6
1 changed files with 6 additions and 1 deletions
|
@ -126,7 +126,12 @@ ngx_http_realip_handler(ngx_http_request_t *r)
|
|||
|
||||
rlcf = ngx_http_get_module_loc_conf(r, ngx_http_realip_module);
|
||||
|
||||
if (rlcf->from == NULL) {
|
||||
if (rlcf->from == NULL
|
||||
#if (NGX_HAVE_UNIX_DOMAIN)
|
||||
&& !rlcf->unixsock
|
||||
#endif
|
||||
)
|
||||
{
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue