mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 19:42:39 +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];
|
||||
|
||||
if (uscf->host.len == host->len
|
||||
&& uscf->port == u->resolved->port
|
||||
&& ngx_memcmp(uscf->host.data, host->data, host->len) == 0)
|
||||
{
|
||||
goto found;
|
||||
|
Loading…
Reference in New Issue
Block a user