nginx-0.0.11-2004-09-21-23:55:00 import
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index b345b2a..06f1565 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1543,6 +1543,8 @@
         return NGX_CONF_OK;
     }
 
+    ls->port = port;
+
     ls->addr = inet_addr((const char *) addr);
     if (ls->addr == INADDR_NONE) {
         h = gethostbyname((const char *) addr);