# HG changeset patch # User Igor Sysoev # Date 1257334626 0 # Node ID 78faaf5cea44994cc3871b6ec6eb9f3bb7afe889 # Parent 4f9509f3871b55660ed4c493f2d1cfe97f90d740 allow to work single "set_real_ip_from unix:" diff -r 4f9509f3871b -r 78faaf5cea44 src/http/modules/ngx_http_realip_module.c --- a/src/http/modules/ngx_http_realip_module.c Wed Nov 04 11:20:54 2009 +0000 +++ b/src/http/modules/ngx_http_realip_module.c Wed Nov 04 11:37:06 2009 +0000 @@ -126,7 +126,12 @@ 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; }