Klaus Demo nginx / 7319b92
allow to work single "set_real_ip_from unix:" Igor Sysoev 12 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
125125
126126 rlcf = ngx_http_get_module_loc_conf(r, ngx_http_realip_module);
127127
128 if (rlcf->from == NULL) {
128 if (rlcf->from == NULL
129 #if (NGX_HAVE_UNIX_DOMAIN)
130 && !rlcf->unixsock
131 #endif
132 )
133 {
129134 return NGX_DECLINED;
130135 }
131136