comparison src/http/ngx_http_request.c @ 462:dcb6b5f9d526 NGINX_0_7_43

nginx 0.7.43 *) Bugfix: a request was handled incorrectly, if a "root" directive used variables; the bug had appeared in 0.7.42. *) Bugfix: if a server listened on wildcard address, then the $server_addr variable value was "0.0.0.0"; the bug had appeared in 0.7.36.
author Igor Sysoev <http://sysoev.ru>
date Wed, 18 Mar 2009 00:00:00 +0300
parents bb941a2996a6
children 09f0ef15d544
comparison
equal deleted inserted replaced
461:47877bb9e445 462:dcb6b5f9d526
308 * there are several addresses on this port and one of them 308 * there are several addresses on this port and one of them
309 * is an "*:port" wildcard so getsockname() in ngx_http_server_addr() 309 * is an "*:port" wildcard so getsockname() in ngx_http_server_addr()
310 * is required to determine a server address 310 * is required to determine a server address
311 */ 311 */
312 312
313 c->local_sockaddr = NULL;
314
315 if (ngx_http_server_addr(r, NULL) != NGX_OK) { 313 if (ngx_http_server_addr(r, NULL) != NGX_OK) {
316 ngx_http_close_connection(c); 314 ngx_http_close_connection(c);
317 return; 315 return;
318 } 316 }
319 317