name = addr[a].names.elts;
for (s = 0; s < addr[a].names.nelts; s++) {
- if (addr[a].core_srv_conf == name[s].core_srv_conf) {
+ if (addr[a].core_srv_conf == name[s].core_srv_conf
+#if (NGX_PCRE)
+ && name[s].captures == 0
+#endif
+ )
+ {
continue;
}
&& (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;
}