mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Remove interface from firewall interfaces when reomved from wizard
This commit is contained in:
parent
e48f194b73
commit
3abadd6823
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,9 @@ function wizard_add()
|
||||||
ucic:save("qos")
|
ucic:save("qos")
|
||||||
ucic:commit("qos")
|
ucic:commit("qos")
|
||||||
luci.sys.call("uci -q del_list vnstat.@vnstat[-1].interface=" .. defif)
|
luci.sys.call("uci -q del_list vnstat.@vnstat[-1].interface=" .. defif)
|
||||||
|
luci.sys.call("uci -q commit vnstat")
|
||||||
|
luci.sys.call("uci -q del_list firewall.@zone[1].network=wan" .. i)
|
||||||
|
luci.sys.call("uci -q commit firewall")
|
||||||
gostatus = false
|
gostatus = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue