commit | adf9c7f1498e86053bf5fa4868f5a719bf811c86 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Wed Dec 06 15:39:08 2006 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Wed Dec 06 15:39:08 2006 +0000 |
tree | 1f7710c244bebf6574814f19e509566b512a4e80 | |
parent | c3d106a9bcf8d498138a2138a6fba447fb0532bc [diff] |
unix socket upstreams always used the first unix upstream
diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 6871602..73209c7 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c
@@ -287,6 +287,9 @@ 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";