Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 901:cc4273a2597e
upstream name was tried to resolve
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 11 Dec 2006 15:12:07 +0000 |
parents | f029e69eb010 |
children | a0310ac2814f |
comparison
equal
deleted
inserted
replaced
900:7cd557624b04 | 901:cc4273a2597e |
---|---|
2841 umcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_upstream_module); | 2841 umcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_upstream_module); |
2842 | 2842 |
2843 uscfp = umcf->upstreams.elts; | 2843 uscfp = umcf->upstreams.elts; |
2844 | 2844 |
2845 for (i = 0; i < umcf->upstreams.nelts; i++) { | 2845 for (i = 0; i < umcf->upstreams.nelts; i++) { |
2846 if (uscfp[i]->port != u->portn | 2846 if ((uscfp[i]->port && uscfp[i]->port != u->portn) |
2847 || uscfp[i]->host.len != u->host.len | 2847 || uscfp[i]->host.len != u->host.len |
2848 || ngx_strncasecmp(uscfp[i]->host.data, u->host.data, u->host.len) | 2848 || ngx_strncasecmp(uscfp[i]->host.data, u->host.data, u->host.len) |
2849 != 0) | 2849 != 0) |
2850 { | 2850 { |
2851 continue; | 2851 continue; |