diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-03-03 20:04:06 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-03-03 20:04:06 +0000 |
commit | 8efe926dc5601397bc054aedf37594e9719a52f6 (patch) | |
tree | 2ec892df84a3f43ba31d77e326f53747049cd744 /src/http/ngx_http_upstream.c | |
parent | 85d6a3e3dbe3ecfb3ae1dce05ec2bfde8bca0f4b (diff) | |
download | nginx-8efe926dc5601397bc054aedf37594e9719a52f6.tar.gz nginx-8efe926dc5601397bc054aedf37594e9719a52f6.zip |
fix r1903
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r-- | src/http/ngx_http_upstream.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index a46b819a4..241277902 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -392,7 +392,8 @@ ngx_http_upstream_init(ngx_http_request_t *r) 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; |