]> git.kaiwu.me - nginx.git/commitdiff
merge r3825, r3826:
authorIgor Sysoev <igor@sysoev.ru>
Tue, 14 Dec 2010 10:41:22 +0000 (10:41 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 14 Dec 2010 10:41:22 +0000 (10:41 +0000)
*) test wildcard tail hash existance for IPv6 addresses,
   the same fix for IPv4 addresses has been made in r2581
*) always run regex in server_name to get captures for IPv6 addresses,
   the same fix for IPv4 addresses has been made in r2584

src/http/ngx_http.c

index 4ecd50ce8317ce33e4625867798319acd055f2ad..9e78ac441d4f8d9343ee345d1087d46c68882163 100644 (file)
@@ -1870,8 +1870,12 @@ ngx_http_add_addrs6(ngx_conf_t *cf, ngx_http_port_t *hport,
         if (addr[i].hash.buckets == NULL
             && (addr[i].wc_head == NULL
                 || addr[i].wc_head->hash.buckets == NULL)
-            && (addr[i].wc_head == NULL
-                || addr[i].wc_head->hash.buckets == NULL))
+            && (addr[i].wc_tail == NULL
+                || addr[i].wc_tail->hash.buckets == NULL)
+#if (NGX_PCRE)
+            && addr[i].nregex == 0
+#endif
+            )
         {
             continue;
         }