From 6645e76e38cc9e4a0aad2d8e1a1d5ce66b9fca91 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 17 Oct 2008 12:36:48 +0000 Subject: fix server_addr value known from configuration, bug introduced in r2199 --- src/http/ngx_http_core_module.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http') 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) { -- cgit