comparison src/http/ngx_http_request.c @ 2573:1374ffff9635

fix $server_addr for wildcard listen, the has been introduced in r2513
author Igor Sysoev <igor@sysoev.ru>
date Wed, 18 Mar 2009 12:23:57 +0000
parents 2c3cff5999a2
children 20a655d8a1f8
comparison
equal deleted inserted replaced
2572:9c42c19f364a 2573:1374ffff9635
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