fix upstream port, introduced in r2513
This commit is contained in:
parent
fe98af1054
commit
71d332dd0d
1 changed files with 1 additions and 2 deletions
|
@ -704,8 +704,7 @@ ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u)
|
|||
|
||||
/* AF_INET only */
|
||||
|
||||
sin = (struct sockaddr_in *) &u->sockaddr;
|
||||
port = sin->sin_port;
|
||||
port = htons(u->port);
|
||||
|
||||
in_addr = inet_addr((char *) host);
|
||||
|
||||
|
|
Loading…
Reference in a new issue