mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-01 16:44:45 +08:00
update 2026-06-21 16:24:44
This commit is contained in:
1 parent
c6a479c0b9
commit
1a2f3e74c1
17 files changed
+1567
-188
No files matched your search
@@ -817,6 +817,13 @@ function add_subscribe_item()
|
||||
return
|
||||
end
|
||||
|
||||
local commit_subscribe = luci.sys.call("uci -q commit shadowsocksr >/dev/null 2>&1")
|
||||
if commit_subscribe ~= 0 then
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json({ ret = 0, error = "commit failed" })
|
||||
return
|
||||
end
|
||||
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json({ ret = 1, sid = sid, alias = alias, enabled = "1" })
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user