# HG changeset patch # User Igor Sysoev # Date 1292188407 0 # Node ID 3770119af0b58c409110a22f61cfa53776b2ded8 # Parent 4ee02b8725917f394e418a9254c3d177a2373e84 always run regex in server_name to get captures for IPv6 addresses, the same fix for IPv4 addresses has been made in r2584 diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1871,7 +1871,11 @@ ngx_http_add_addrs6(ngx_conf_t *cf, ngx_ && (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; }