diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 3debac37e..4c180361d 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -518,7 +518,6 @@ ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u) (void) ngx_cpystrn(p, host, len); - u->addr.in_addr = inet_addr((const char *) p); sin->sin_addr.s_addr = inet_addr((const char *) p); if (sin->sin_addr.s_addr == INADDR_NONE) { @@ -530,7 +529,6 @@ ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u) return NGX_ERROR; } - u->addr.in_addr = *(in_addr_t *) (h->h_addr_list[0]); sin->sin_addr.s_addr = *(in_addr_t *) (h->h_addr_list[0]); } @@ -541,7 +539,6 @@ ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u) ngx_free(p); } else { - u->addr.in_addr = INADDR_ANY; sin->sin_addr.s_addr = INADDR_ANY; u->wildcard = 1; } diff --git a/src/core/ngx_inet.h b/src/core/ngx_inet.h index 855740933..7562c9e80 100644 --- a/src/core/ngx_inet.h +++ b/src/core/ngx_inet.h @@ -61,11 +61,6 @@ typedef struct { } ngx_cidr_t; -typedef union { - in_addr_t in_addr; -} ngx_url_addr_t; - - typedef struct { struct sockaddr *sockaddr; socklen_t socklen; @@ -91,8 +86,6 @@ typedef struct { unsigned no_port:1; unsigned wildcard:1; - ngx_url_addr_t addr; - socklen_t socklen; u_char sockaddr[NGX_SOCKADDRLEN];