diff src/http/modules/ngx_http_realip_module.c @ 3291:78faaf5cea44

allow to work single "set_real_ip_from unix:"
author Igor Sysoev <igor@sysoev.ru>
date Wed, 04 Nov 2009 11:37:06 +0000
parents 9285e936c79d
children 8017f9bda3f6
line wrap: on
line diff
--- 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;
     }