fix upstream port, introduced in r2513

This commit is contained in:
Igor Sysoev 2009-02-21 14:34:32 +00:00
parent fe98af1054
commit 71d332dd0d

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