Mercurial > hg > nginx-vendor-1-0
comparison src/http/modules/ngx_http_realip_module.c @ 400:6ebbca3d5ed7 NGINX_0_7_12
nginx 0.7.12
*) Feature: the "server_name" directive supports empty name "".
*) Feature: the "gzip_disable" directive supports special "msie6" mask.
*) Bugfix: if the "max_fails=0" parameter was used in upstream with
several servers, then a worker process exited on a SIGFPE signal.
Thanks to Maxim Dounin.
*) Bugfix: a request body was dropped while redirection via an
"error_page" directive.
*) Bugfix: a full response was returned for request method HEAD while
redirection via an "error_page" directive.
*) Bugfix: the $r->header_in() method did not return value of the
"Host", "User-Agent", and "Connection" request header lines; the bug
had appeared in 0.7.0.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 26 Aug 2008 00:00:00 +0400 |
parents | 349057ecf4d5 |
children | b246022ef454 |
comparison
equal
deleted
inserted
replaced
399:59e324e4d6d3 | 400:6ebbca3d5ed7 |
---|---|
249 return NGX_CONF_ERROR; | 249 return NGX_CONF_ERROR; |
250 } | 250 } |
251 | 251 |
252 value = cf->args->elts; | 252 value = cf->args->elts; |
253 | 253 |
254 from->addr = inet_addr((char *) value[1].data); | |
255 | |
256 if (from->addr != INADDR_NONE) { | |
257 from->mask = 0xffffffff; | |
258 | |
259 return NGX_CONF_OK; | |
260 } | |
261 | |
262 rc = ngx_ptocidr(&value[1], &in_cidr); | 254 rc = ngx_ptocidr(&value[1], &in_cidr); |
263 | 255 |
264 if (rc == NGX_ERROR) { | 256 if (rc == NGX_ERROR) { |
265 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid parameter \"%V\"", | 257 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid parameter \"%V\"", |
266 &value[1]); | 258 &value[1]); |