From 5a4adadbbf66680feafae2ff9f31bed93d9d0f09 Mon Sep 17 00:00:00 2001 From: Jared Dohrman Date: Sun, 19 Apr 2026 15:49:57 +1000 Subject: [PATCH] chore: add `region` to allowlist CLI --- docs/custom-cli.md | 3 +++ examples/simple_repeater/MyMesh.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/docs/custom-cli.md b/docs/custom-cli.md index 5cf6bfd0..56cd394c 100644 --- a/docs/custom-cli.md +++ b/docs/custom-cli.md @@ -89,6 +89,9 @@ When the repeater web panel is enabled, it only allows a limited command set. That allowlist currently includes: - `clock` +- `region default` +- `region default ` +- `region default ` - `get mqtt.status` - `get web` - `get web.status` diff --git a/examples/simple_repeater/MyMesh.cpp b/examples/simple_repeater/MyMesh.cpp index 04c6bd68..c536f70d 100644 --- a/examples/simple_repeater/MyMesh.cpp +++ b/examples/simple_repeater/MyMesh.cpp @@ -2002,6 +2002,7 @@ void MyMesh::runWebCommand(const char* command, char* reply, size_t reply_size) bool allowed = matches_exact("clock") || + matches_exact("region default") || matches_exact("get mqtt.status") || matches_exact("get web.status") || matches_exact("get web.stats.status") || @@ -2076,6 +2077,7 @@ void MyMesh::runWebCommand(const char* command, char* reply, size_t reply_size) matches_prefix("set repeat ") || matches_prefix("set flood.max ") || matches_prefix("set path.hash.mode ") || + matches_prefix("region default ") || matches_prefix("time ") || matches_prefix("time.force ") || matches_prefix("set owner.info ");