diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-12-11 08:25:03 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-12-11 08:25:03 +0000 |
commit | e60b99f1d0f5b15a3e48762fa6c83b5d685ce2a9 (patch) | |
tree | a6bb2b2e983390c0f29963456d23669f44d26b1f | |
parent | adf9c7f1498e86053bf5fa4868f5a719bf811c86 (diff) | |
download | nginx-e60b99f1d0f5b15a3e48762fa6c83b5d685ce2a9.tar.gz nginx-e60b99f1d0f5b15a3e48762fa6c83b5d685ce2a9.zip |
TCP upstreams always used the first TCP upstream with the same name
-rw-r--r-- | src/http/ngx_http_upstream.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index a268f193f..a358ce248 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -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) { |