Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 1912:68b426b43c31
fix r1903
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 03 Mar 2008 20:04:06 +0000 |
parents | f2953601ed3c |
children | cc68a7dc2dd0 |
comparison
equal
deleted
inserted
replaced
1911:ade85ba31674 | 1912:68b426b43c31 |
---|---|
390 for (i = 0; i < umcf->upstreams.nelts; i++) { | 390 for (i = 0; i < umcf->upstreams.nelts; i++) { |
391 | 391 |
392 uscf = uscfp[i]; | 392 uscf = uscfp[i]; |
393 | 393 |
394 if (uscf->host.len == host->len | 394 if (uscf->host.len == host->len |
395 && uscf->port == u->resolved->port | 395 && ((uscf->port == 0 && u->resolved->default_port) |
396 || uscf->port == u->resolved->port) | |
396 && ngx_memcmp(uscf->host.data, host->data, host->len) == 0) | 397 && ngx_memcmp(uscf->host.data, host->data, host->len) == 0) |
397 { | 398 { |
398 goto found; | 399 goto found; |
399 } | 400 } |
400 } | 401 } |