From 7319b925918fe73aa1221a656ec3172ba2b11951 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 4 Nov 2009 11:37:06 +0000 Subject: allow to work single "set_real_ip_from unix:" --- src/http/modules/ngx_http_realip_module.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_realip_module.c b/src/http/modules/ngx_http_realip_module.c index 4288aaba9..7942042a3 100644 --- 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_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; } -- cgit