mirror of
https://github.com/nginx/nginx.git
synced 2025-06-13 06:12:44 +08:00
check port in upstream list
This commit is contained in:
parent
09248b7a55
commit
d3434dfa63
@ -392,6 +392,7 @@ ngx_http_upstream_init(ngx_http_request_t *r)
|
|||||||
uscf = uscfp[i];
|
uscf = uscfp[i];
|
||||||
|
|
||||||
if (uscf->host.len == host->len
|
if (uscf->host.len == host->len
|
||||||
|
&& uscf->port == u->resolved->port
|
||||||
&& ngx_memcmp(uscf->host.data, host->data, host->len) == 0)
|
&& ngx_memcmp(uscf->host.data, host->data, host->len) == 0)
|
||||||
{
|
{
|
||||||
goto found;
|
goto found;
|
||||||
|
Loading…
Reference in New Issue
Block a user