]> git.kaiwu.me - nginx.git/commitdiff
axe unneeded port field
authorIgor Sysoev <igor@sysoev.ru>
Mon, 23 Feb 2009 21:30:31 +0000 (21:30 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 23 Feb 2009 21:30:31 +0000 (21:30 +0000)
src/http/ngx_http.c
src/http/ngx_http_core_module.h

index ecd9c97d7b680da925ba1badabe4108bbdd1b182..080ef8e8ef4d2c541d244b714bb1206e8cde1154 100644 (file)
@@ -1647,8 +1647,6 @@ ngx_http_init_listening(ngx_conf_t *cf, ngx_http_conf_port_t *port)
 
         ls->servers = hport;
 
-        hport->port = ntohs(port->port);
-
         for (i = ls->addr_text.len - 1; i; i--) {
 
             if (ls->addr_text.data[i] == ':') {
index 2fdc1020b4b5e2489abeada2484057c52d2f0522..018bd1bc987f42b16ecc07877337213bd0906ed9 100644 (file)
@@ -200,7 +200,6 @@ typedef struct {
 
 
 typedef struct {
-    in_port_t                  port;
     ngx_str_t                  port_text;
 
     /* ngx_http_in_addr_t or ngx_http_in6_addr_t */