]> git.kaiwu.me - nginx.git/commitdiff
allow to work single "set_real_ip_from unix:"
authorIgor Sysoev <igor@sysoev.ru>
Wed, 4 Nov 2009 11:37:06 +0000 (11:37 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 4 Nov 2009 11:37:06 +0000 (11:37 +0000)
src/http/modules/ngx_http_realip_module.c

index 4288aaba9e1a342d06910f207b886c207288cf8b..7942042a3f91fabb6b752b672f52100716a1e136 100644 (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;
     }