mirror of
https://github.com/nginx/nginx.git
synced 2025-01-07 17:27:48 +08:00
unix socket upstreams always used the first unix upstream
This commit is contained in:
parent
c3d106a9bc
commit
adf9c7f149
@ -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.len = len + 5;
|
||||||
u->addrs[0].name.data = u->url.data;
|
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.len = sizeof("localhost") - 1;
|
||||||
u->host_header.data = (u_char *) "localhost";
|
u->host_header.data = (u_char *) "localhost";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user