# HG changeset patch # User Igor Sysoev # Date 1235424631 0 # Node ID 5d53ad3a83199b01f862d012835bdd008fb509ff # Parent 339da812982c760dc2b020c1c130f697fc71480b axe unneeded port field diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1647,8 +1647,6 @@ ngx_http_init_listening(ngx_conf_t *cf, 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 --- 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 */