# HG changeset patch # User Igor Sysoev # Date 1257334626 0 # Node ID 78faaf5cea44994cc3871b6ec6eb9f3bb7afe889 # Parent 4f9509f3871b55660ed4c493f2d1cfe97f90d740 allow to work single "set_real_ip_from unix:" diff --git a/src/http/modules/ngx_http_realip_module.c b/src/http/modules/ngx_http_realip_module.c --- a/src/http/modules/ngx_http_realip_module.c +++ b/src/http/modules/ngx_http_realip_module.c @@ -126,7 +126,12 @@ ngx_http_realip_handler(ngx_http_request 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; }