commit | 8efe926dc5601397bc054aedf37594e9719a52f6 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Mar 03 20:04:06 2008 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Mar 03 20:04:06 2008 +0000 |
tree | 2ec892df84a3f43ba31d77e326f53747049cd744 | |
parent | 85d6a3e3dbe3ecfb3ae1dce05ec2bfde8bca0f4b [diff] [blame] |
fix r1903
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index a46b819..2412779 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c
@@ -392,7 +392,8 @@ uscf = uscfp[i]; if (uscf->host.len == host->len - && uscf->port == u->resolved->port + && ((uscf->port == 0 && u->resolved->default_port) + || uscf->port == u->resolved->port) && ngx_memcmp(uscf->host.data, host->data, host->len) == 0) { goto found;