applications/luci-firewall: properly handle zone removal
This commit is contained in:
parent
1a221ddfb9
commit
7e484b857b
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ function s.create(self)
|
|||
end
|
||||
end
|
||||
|
||||
function s.remove(self, section)
|
||||
return fw:del_zone(section)
|
||||
end
|
||||
|
||||
info = s:option(DummyValue, "_info", translate("Zone ⇒ Forwardings"))
|
||||
info.template = "cbi/firewall_zoneforwards"
|
||||
function info.cfgvalue(self, section)
|
||||
|
|
Loading…
Reference in a new issue