mirror of
https://github.com/nginx/nginx.git
synced 2024-12-28 09:51:04 -06:00
fix upstream port, introduced in r2513
This commit is contained in:
parent
e10385efe5
commit
2bc44ea01a
@ -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 New Issue
Block a user