Skip to content

Commit

Permalink
Add block reason to rule settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrfv committed Mar 21, 2024
1 parent 203f248 commit 48f4d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const createZeroTrustRule = async (wirefilterExpression, name = "CGPS Fil
"Filter lists created by Cloudflare Gateway Pi-hole Scripts. Avoid editing this rule. Changing the name of this rule will break the script.",
enabled: true,
action: "block",
rule_settings: { "block_page_enabled": BLOCK_PAGE_ENABLED },
rule_settings: { "block_page_enabled": BLOCK_PAGE_ENABLED, "block_reason": "Blocked by CGPS, check your filter lists if this was a mistake." },
filters,
traffic: wirefilterExpression,
}),
Expand Down

0 comments on commit 48f4d71

Please sign in to comment.