mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
Merge pull request #14 from hlqviet/upstream
Use `Domain` selector instead of `Host` to block subdomains
This commit is contained in:
@@ -30,7 +30,7 @@ async function getZeroTrustLists() {
|
||||
|
||||
// Build the wirefilter expression
|
||||
for (const list of filtered_lists) {
|
||||
wirefilter_expression += `dns.fqdn in \$${list.id} or `;
|
||||
wirefilter_expression += `any(dns.domains[*] in \$${list.id}) or `;
|
||||
}
|
||||
// Remove the trailing ' or '
|
||||
if (wirefilter_expression.endsWith(' or ')) {
|
||||
|
||||
Reference in New Issue
Block a user