fix upstream port, introduced in r2513

This commit is contained in:
Igor Sysoev 2009-02-21 14:34:32 +00:00
parent e10385efe5
commit 2bc44ea01a

View File

@ -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);