]> git.kaiwu.me - nginx.git/commitdiff
unix socket upstreams always used the first unix upstream
authorIgor Sysoev <igor@sysoev.ru>
Wed, 6 Dec 2006 15:39:08 +0000 (15:39 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 6 Dec 2006 15:39:08 +0000 (15:39 +0000)
src/core/ngx_inet.c

index 6871602692288c3d672d9c5d3ad8588573bdb5ce..73209c7e0ffb627317dda4a65c28ab9abf401676 100644 (file)
@@ -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";