delete unneeded field
This commit is contained in:
parent
9751eea0ee
commit
01bd8881cc
2 changed files with 0 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue