| 379 | | if (!(ap->can & ACS_SITELOCK) |
|---|
| 380 | | && ((ap->can & ACS_REGEXP) |
|---|
| 381 | | ? (qcomp_regexp_match(ap->re, hname) |
|---|
| 382 | | || (p && qcomp_regexp_match(ap->re, p)) |
|---|
| 383 | | #ifdef FORCE_IPV4 |
|---|
| 384 | | || qcomp_regexp_match(ip4_to_ip6(ap->re), hname) |
|---|
| 385 | | || (p && qcomp_regexp_match(ip4_to_ip6(ap->re), p)) |
|---|
| 386 | | #endif |
|---|
| 387 | | ) |
|---|
| 388 | | : (quick_wild(ap->host, hname) |
|---|
| 389 | | || (p && quick_wild(ap->host, p)) |
|---|
| 390 | | #ifdef FORCE_IPV4 |
|---|
| 391 | | || quick_wild(ip4_to_ip6(ap->host), hname) |
|---|
| 392 | | || (p && quick_wild(ip4_to_ip6(ap->host), p)) |
|---|
| 393 | | #endif |
|---|
| 394 | | )) |
|---|
| | 379 | if (ap->can & ACS_SITELOCK) |
|---|
| | 380 | continue; |
|---|
| | 381 | if ((ap->can & ACS_REGEXP) |
|---|
| | 382 | ? (qcomp_regexp_match(ap->re, hname) |
|---|
| | 383 | || (p && qcomp_regexp_match(ap->re, p))) |
|---|
| | 384 | : (quick_wild(ap->host, hname) |
|---|
| | 385 | || (p && quick_wild(ap->host, p))) |
|---|
| 449 | | if (!(ap->can & ACS_SITELOCK) |
|---|
| 450 | | && ((ap->can & ACS_REGEXP) |
|---|
| 451 | | ? (qcomp_regexp_match(ap->re, hname) |
|---|
| 452 | | || (p && qcomp_regexp_match(ap->re, p)) |
|---|
| 453 | | #ifdef FORCE_IPV4 |
|---|
| 454 | | || qcomp_regexp_match(ip4_to_ip6(ap->host), hname) |
|---|
| 455 | | || (p && qcomp_regexp_match(ip4_to_ip6(ap->host), p)) |
|---|
| 456 | | #endif |
|---|
| 457 | | ) |
|---|
| 458 | | : (quick_wild(ap->host, hname) |
|---|
| 459 | | || (p && quick_wild(ap->host, p)) |
|---|
| 460 | | #ifdef FORCE_IPV4 |
|---|
| 461 | | || quick_wild(ip4_to_ip6(ap->host), hname) |
|---|
| 462 | | || (p && quick_wild(ip4_to_ip6(ap->host), p)) |
|---|
| 463 | | #endif |
|---|
| 464 | | )) |
|---|
| | 440 | if (ap->can & ACS_SITELOCK) |
|---|
| | 441 | continue; |
|---|
| | 442 | if (((ap->can & ACS_REGEXP) |
|---|
| | 443 | ? (qcomp_regexp_match(ap->re, hname) |
|---|
| | 444 | || (p && qcomp_regexp_match(ap->re, p))) |
|---|
| | 445 | : (quick_wild(ap->host, hname) |
|---|
| | 446 | || (p && quick_wild(ap->host, p)))) |
|---|