Skip to content

Commit 23b0f07

Browse files
committed
Include description with the rule update request
The rule description has to be included with the PUT request that updates an existing rule; otherwise it will be lost.
1 parent 17b34b6 commit 23b0f07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/api.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ export const updateZeroTrustRule = async (id, wirefilterExpression, name = "CGPS
209209
// Name and action are required fields, even if they haven't changed.
210210
// And enabled must always be set to true, otherwise the rule will be disabled if omitted.
211211
name,
212+
description:
213+
"Filter lists created by Cloudflare Gateway Pi-hole Scripts. Avoid editing this rule. Changing the name of this rule will break the script.",
212214
action: "block",
213215
enabled: true,
214216
rule_settings: { "block_page_enabled": BLOCK_PAGE_ENABLED, "block_reason": "Blocked by CGPS, check your filter lists if this was a mistake." },

0 commit comments

Comments
 (0)