aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-10-17 12:36:48 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-10-17 12:36:48 +0000
commit6645e76e38cc9e4a0aad2d8e1a1d5ce66b9fca91 (patch)
tree11cd4b153b129d6e6af1b89221ba4e43470d181c /src
parentad1e123bfae5dcfd44ff82d12e59b4af58b2f8cf (diff)
downloadnginx-6645e76e38cc9e4a0aad2d8e1a1d5ce66b9fca91.tar.gz
nginx-6645e76e38cc9e4a0aad2d8e1a1d5ce66b9fca91.zip
fix server_addr value known from configuration, bug introduced in r2199
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_core_module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index dd76b99e3..f220368da 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1631,6 +1631,10 @@ ngx_http_server_addr(ngx_http_request_t *r, ngx_str_t *s)
}
r->in_addr = sin.sin_addr.s_addr;
+
+ } else {
+ sin.sin_family = c->sockaddr->sa_family;
+ sin.sin_addr.s_addr = r->in_addr;
}
if (s == NULL) {