From: Igor Sysoev Date: Mon, 23 Feb 2009 21:30:31 +0000 (+0000) Subject: axe unneeded port field X-Git-Tag: release-0.7.39~13 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=4da223c8b54546d3773fd3dcacdae7d7723caf46;p=nginx.git axe unneeded port field --- diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index ecd9c97d7..080ef8e8e 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -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] == ':') { diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index 2fdc1020b..018bd1bc9 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -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 */