mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 14:55:13 +08:00
🎈 Sync 2026-03-21 18:41:20
This commit is contained in:
1 parent
5168976bf5
commit
d1bb7ce8e9
9 files changed
+271
-247
No files matched your search
@@ -506,8 +506,8 @@ function action_config_data()
|
||||
return
|
||||
end
|
||||
local port_num = tonumber(port) or 0
|
||||
if port_num < 1 or port_num > 65535 then
|
||||
write_json({ ok = false, error = "invalid port" })
|
||||
if port_num < 1025 or port_num > 65535 then
|
||||
write_json({ ok = false, error = "invalid port (must be 1025-65535)" })
|
||||
return
|
||||
end
|
||||
uci:set("openclawmgr", section, "port", port)
|
||||
|
||||
Reference in new issue
Block a user