mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
allow to work single "set_real_ip_from unix:"
This commit is contained in:
parent
822503ea41
commit
7319b92591
@ -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 New Issue
Block a user