diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-11-04 11:37:06 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-04 11:37:06 +0000 |
| commit | 7319b925918fe73aa1221a656ec3172ba2b11951 (patch) | |
| tree | 4b577870823c18c39c89f7404a10823f06b3f0e1 | |
| parent | 822503ea41ea4c275a0aecdbdc976661ff1213c4 (diff) | |
| download | nginx-7319b925918fe73aa1221a656ec3172ba2b11951.tar.gz nginx-7319b925918fe73aa1221a656ec3172ba2b11951.tar.bz2 | |
allow to work single "set_real_ip_from unix:"
| -rw-r--r-- | src/http/modules/ngx_http_realip_module.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |
