diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-12-11 15:12:07 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-12-11 15:12:07 +0000 |
commit | 2fb2a8dbf91fe5530f1d4e7351693309cffdbfc8 (patch) | |
tree | cb0bdcb59a635ab75429f1457f29d05cbb74433c /src | |
parent | 45fdb988fefe4c98b09a87c9c47cb93b5ff78742 (diff) | |
download | nginx-2fb2a8dbf91fe5530f1d4e7351693309cffdbfc8.tar.gz nginx-2fb2a8dbf91fe5530f1d4e7351693309cffdbfc8.zip |
upstream name was tried to resolve
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index a358ce248..a917dcf49 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -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) |