allow to work single "set_real_ip_from unix:"

This commit is contained in:
Igor Sysoev 2009-11-04 11:37:06 +00:00
parent 2a2237f139
commit ca6e7a42b6

View file

@ -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;
}