From 2a9ce6263164bedc4db70e0ad9fc6591605e38b0 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 18 May 2009 12:58:19 +0000 Subject: use ngx_connection_local_sockaddr() instead of ngx_http_server_addr() --- src/http/ngx_http_variables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/http/ngx_http_variables.c') diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index dd28888fa..28c82ef2f 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -938,7 +938,7 @@ ngx_http_variable_server_addr(ngx_http_request_t *r, s.len = NGX_SOCKADDR_STRLEN; s.data = addr; - if (ngx_http_server_addr(r, &s) != NGX_OK) { + if (ngx_connection_local_sockaddr(r->connection, &s, 0) != NGX_OK) { return NGX_ERROR; } @@ -974,7 +974,7 @@ ngx_http_variable_server_port(ngx_http_request_t *r, v->no_cacheable = 0; v->not_found = 0; - if (ngx_http_server_addr(r, NULL) != NGX_OK) { + if (ngx_connection_local_sockaddr(r->connection, NULL, 0) != NGX_OK) { return NGX_ERROR; } -- cgit