added backlight and fixed outbound

This commit is contained in:
2026-07-21 09:17:48 +03:00
parent ff2b8a250e
commit 5392273794
37 changed files with 1560 additions and 76 deletions
+7
View File
@@ -275,6 +275,13 @@ def api_set_settings():
if not isinstance(val, str) or not val.strip():
abort(400, "password required")
val = val.strip()
if k == "webPort":
try:
val = int(val)
except (TypeError, ValueError):
abort(400, "invalid web port")
if val < 1024 or val > 65535:
abort(400, "web port must be 102465535")
st[k] = val
cfg["settings"] = st
save_config(cfg)