]> git.kaiwu.me - nginx.git/commitdiff
nginx-0.0.11-2004-09-21-23:55:00 import
authorIgor Sysoev <igor@sysoev.ru>
Tue, 21 Sep 2004 19:55:00 +0000 (19:55 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 21 Sep 2004 19:55:00 +0000 (19:55 +0000)
src/http/ngx_http_core_module.c

index b345b2a7a7712eb5fc58dd9924a994ccfc01c18e..06f1565a0555b0994efd01d2b9443e999e2a4178 100644 (file)
@@ -1543,6 +1543,8 @@ static char *ngx_set_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         return NGX_CONF_OK;
     }
 
+    ls->port = port;
+
     ls->addr = inet_addr((const char *) addr);
     if (ls->addr == INADDR_NONE) {
         h = gethostbyname((const char *) addr);