chore: add region to allowlist CLI
Этот коммит содержится в:
@@ -89,6 +89,9 @@ When the repeater web panel is enabled, it only allows a limited command set.
|
|||||||
That allowlist currently includes:
|
That allowlist currently includes:
|
||||||
|
|
||||||
- `clock`
|
- `clock`
|
||||||
|
- `region default`
|
||||||
|
- `region default <name>`
|
||||||
|
- `region default <null>`
|
||||||
- `get mqtt.status`
|
- `get mqtt.status`
|
||||||
- `get web`
|
- `get web`
|
||||||
- `get web.status`
|
- `get web.status`
|
||||||
|
|||||||
@@ -2002,6 +2002,7 @@ void MyMesh::runWebCommand(const char* command, char* reply, size_t reply_size)
|
|||||||
|
|
||||||
bool allowed =
|
bool allowed =
|
||||||
matches_exact("clock") ||
|
matches_exact("clock") ||
|
||||||
|
matches_exact("region default") ||
|
||||||
matches_exact("get mqtt.status") ||
|
matches_exact("get mqtt.status") ||
|
||||||
matches_exact("get web.status") ||
|
matches_exact("get web.status") ||
|
||||||
matches_exact("get web.stats.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 repeat ") ||
|
||||||
matches_prefix("set flood.max ") ||
|
matches_prefix("set flood.max ") ||
|
||||||
matches_prefix("set path.hash.mode ") ||
|
matches_prefix("set path.hash.mode ") ||
|
||||||
|
matches_prefix("region default ") ||
|
||||||
matches_prefix("time ") ||
|
matches_prefix("time ") ||
|
||||||
matches_prefix("time.force ") ||
|
matches_prefix("time.force ") ||
|
||||||
matches_prefix("set owner.info ");
|
matches_prefix("set owner.info ");
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user