1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix wizard

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-02-01 16:21:58 +01:00
parent d2aeaf3c2b
commit 9432081ec4
2 changed files with 10 additions and 9 deletions

View file

@ -246,7 +246,7 @@ function wizard_add()
ucic:set("network",intf,"type",typeintf)
end
if vlan ~= "" then
ifname=ifname .. '.' .. vlan
ifname = ifname .. '.' .. vlan
end
if typeintf == "macvlan" and masterintf ~= "" then
ucic:set("network",intf,"type","macvlan")
@ -905,6 +905,9 @@ function settings_add()
-- Enable/disable debug
local debug = luci.http.formvalue("debug") or "0"
ucic:set("openmptcprouter","settings","debug",debug)
ucic:foreach("shadowsocks-libev", "ss_redir", function (section)
ucic:set("shadowsocks-libev",section[".name"],"verbose",debug)
end)
-- Enable/disable vnstat backup
local savevnstat = luci.http.formvalue("savevnstat") or "0"