diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-05-18 12:58:19 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-05-18 12:58:19 +0000 |
commit | 2a9ce6263164bedc4db70e0ad9fc6591605e38b0 (patch) | |
tree | eee93b330dc9ac4ab4db3d14618bc3455be4b619 /src/http/ngx_http_request.c | |
parent | 739e29b651dc0f6f176884cce697018b4b522a67 (diff) | |
download | nginx-2a9ce6263164bedc4db70e0ad9fc6591605e38b0.tar.gz nginx-2a9ce6263164bedc4db70e0ad9fc6591605e38b0.zip |
use ngx_connection_local_sockaddr() instead of ngx_http_server_addr()
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 39bf57ee2..1761a88ff 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -310,7 +310,7 @@ ngx_http_init_request(ngx_event_t *rev) * is required to determine a server address */ - if (ngx_http_server_addr(r, NULL) != NGX_OK) { + if (ngx_connection_local_sockaddr(c, NULL, 0) != NGX_OK) { ngx_http_close_connection(c); return; } |