diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-12-06 15:39:08 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-12-06 15:39:08 +0000 |
commit | adf9c7f1498e86053bf5fa4868f5a719bf811c86 (patch) | |
tree | 1f7710c244bebf6574814f19e509566b512a4e80 | |
parent | c3d106a9bcf8d498138a2138a6fba447fb0532bc (diff) | |
download | nginx-adf9c7f1498e86053bf5fa4868f5a719bf811c86.tar.gz nginx-adf9c7f1498e86053bf5fa4868f5a719bf811c86.zip |
unix socket upstreams always used the first unix upstream
-rw-r--r-- | src/core/ngx_inet.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 687160269..73209c7e0 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -287,6 +287,9 @@ ngx_parse_url(ngx_conf_t *cf, ngx_url_t *u) u->addrs[0].name.len = len + 5; u->addrs[0].name.data = u->url.data; + u->host.len = len; + u->host.data = p; + u->host_header.len = sizeof("localhost") - 1; u->host_header.data = (u_char *) "localhost"; |