fix server_addr value known from configuration, bug introduced in r2199
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index dd76b99..f220368 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1631,6 +1631,10 @@
         }
 
         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) {