comparison 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
comparison
equal deleted inserted replaced
3290:4f9509f3871b 3291:78faaf5cea44
124 return NGX_DECLINED; 124 return NGX_DECLINED;
125 } 125 }
126 126
127 rlcf = ngx_http_get_module_loc_conf(r, ngx_http_realip_module); 127 rlcf = ngx_http_get_module_loc_conf(r, ngx_http_realip_module);
128 128
129 if (rlcf->from == NULL) { 129 if (rlcf->from == NULL
130 #if (NGX_HAVE_UNIX_DOMAIN)
131 && !rlcf->unixsock
132 #endif
133 )
134 {
130 return NGX_DECLINED; 135 return NGX_DECLINED;
131 } 136 }
132 137
133 switch (rlcf->type) { 138 switch (rlcf->type) {
134 139