Mercurial > hg > nginx
diff src/http/ngx_http_variables.c @ 2857:507fc5ac9839
use ngx_connection_local_sockaddr() instead of ngx_http_server_addr()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 18 May 2009 12:58:19 +0000 |
parents | 2f3c80ff2123 |
children | 8535736ace1a |
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c Mon May 18 12:21:00 2009 +0000 +++ b/src/http/ngx_http_variables.c Mon May 18 12:58:19 2009 +0000 @@ -938,7 +938,7 @@ 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 @@ 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; }