Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 2285:c77f4710595c
fix r1913
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 30 Oct 2008 15:59:10 +0000 |
parents | 33556140681a |
children | 3f98400e31e9 |
comparison
equal
deleted
inserted
replaced
2284:c3035feb6638 | 2285:c77f4710595c |
---|---|
403 for (i = 0; i < umcf->upstreams.nelts; i++) { | 403 for (i = 0; i < umcf->upstreams.nelts; i++) { |
404 | 404 |
405 uscf = uscfp[i]; | 405 uscf = uscfp[i]; |
406 | 406 |
407 if (uscf->host.len == host->len | 407 if (uscf->host.len == host->len |
408 && ((uscf->port == 0 && u->resolved->default_port) | 408 && ((uscf->port == 0 && u->resolved->no_port) |
409 || uscf->port == u->resolved->port) | 409 || uscf->port == u->resolved->port) |
410 && ngx_memcmp(uscf->host.data, host->data, host->len) == 0) | 410 && ngx_memcmp(uscf->host.data, host->data, host->len) == 0) |
411 { | 411 { |
412 goto found; | 412 goto found; |
413 } | 413 } |