Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream.c @ 1902:37f4020963dc
check port in upstream list
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 21 Feb 2008 13:58:45 +0000 |
parents | e5897822515f |
children | f2953601ed3c |
comparison
equal
deleted
inserted
replaced
1901:d880fa02fb65 | 1902:37f4020963dc |
---|---|
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 && ngx_memcmp(uscf->host.data, host->data, host->len) == 0) | 396 && ngx_memcmp(uscf->host.data, host->data, host->len) == 0) |
396 { | 397 { |
397 goto found; | 398 goto found; |
398 } | 399 } |
399 } | 400 } |