mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 04:12:40 +08:00
TCP upstreams always used the first TCP upstream with the same name
This commit is contained in:
parent
adf9c7f149
commit
e60b99f1d0
@ -2843,7 +2843,8 @@ ngx_http_upstream_add(ngx_conf_t *cf, ngx_url_t *u, ngx_uint_t flags)
|
||||
uscfp = umcf->upstreams.elts;
|
||||
|
||||
for (i = 0; i < umcf->upstreams.nelts; i++) {
|
||||
if (uscfp[i]->host.len != u->host.len
|
||||
if (uscfp[i]->port != u->portn
|
||||
|| uscfp[i]->host.len != u->host.len
|
||||
|| ngx_strncasecmp(uscfp[i]->host.data, u->host.data, u->host.len)
|
||||
!= 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user