check port in upstream list

This commit is contained in:
Igor Sysoev 2008-02-21 13:58:45 +00:00
parent 09248b7a55
commit d3434dfa63

View File

@ -392,6 +392,7 @@ ngx_http_upstream_init(ngx_http_request_t *r)
uscf = uscfp[i];
if (uscf->host.len == host->len
&& uscf->port == u->resolved->port
&& ngx_memcmp(uscf->host.data, host->data, host->len) == 0)
{
goto found;