mirror of
https://github.com/nginx/nginx.git
synced 2026-06-09 17:03:01 -04:00
upstream name was tried to resolve
This commit is contained in:
parent
45fdb988fe
commit
2fb2a8dbf9
1 changed files with 1 additions and 1 deletions
|
|
@ -2843,7 +2843,7 @@ 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]->port != u->portn
|
||||
if ((uscfp[i]->port && 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 a new issue