mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add OBFS in advanced settings
This commit is contained in:
parent
b0ba81e178
commit
5329b486c8
2 changed files with 17 additions and 0 deletions
|
@ -310,6 +310,13 @@ function settings_add()
|
|||
end
|
||||
ucic:save("dhcp")
|
||||
ucic:commit("dhcp")
|
||||
|
||||
local obfs = luci.http.formvalue("obfs") or 0
|
||||
ucic:foreach("shadowsocks-libev", "ss_redir", function (section)
|
||||
ucic:set("shadowsocks-libev",section[".name"],"obfs",obfs)
|
||||
end)
|
||||
ucic:set("shadowsocks-libev","tracker","obfs",obfs)
|
||||
|
||||
ucic:save("shadowsocks-libev")
|
||||
ucic:commit("shadowsocks-libev")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue