summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-firewall/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-firewall/luasrc')
-rw-r--r--applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
index baced4a88..79604c263 100644
--- a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
+++ b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
@@ -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)