Mercurial > hg > nginx
changeset 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 | 4f9509f3871b |
children | 6ed04ab2d062 |
files | src/http/modules/ngx_http_realip_module.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }