]> git.kaiwu.me - nginx.git/commitdiff
check port in upstream list
authorIgor Sysoev <igor@sysoev.ru>
Thu, 21 Feb 2008 13:58:45 +0000 (13:58 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 21 Feb 2008 13:58:45 +0000 (13:58 +0000)
src/http/ngx_http_upstream.c

index 89240c0b103af3240b6c5f8e6b737f7bd71173b4..aedc504b66b5e03c1757f9eb0831a806844c3dc3 100644 (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;