always run regex in server_name to get captures for IPv6 addresses,

the same fix for IPv4 addresses has been made in r2584
This commit is contained in:
Igor Sysoev 2010-12-12 21:13:27 +00:00
parent 1fdb004f52
commit 5644c43caf

View File

@ -1871,7 +1871,11 @@ ngx_http_add_addrs6(ngx_conf_t *cf, ngx_http_port_t *hport,
&& (addr[i].wc_head == NULL
|| addr[i].wc_head->hash.buckets == NULL)
&& (addr[i].wc_tail == NULL
|| addr[i].wc_tail->hash.buckets == NULL))
|| addr[i].wc_tail->hash.buckets == NULL)
#if (NGX_PCRE)
&& addr[i].nregex == 0
#endif
)
{
continue;
}