git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1a221dd
)
applications/luci-firewall: properly handle zone removal
author
Jo-Philipp Wich
<redacted>
Mon, 11 Jul 2011 13:11:12 +0000
(13:11 +0000)
committer
Jo-Philipp Wich
<redacted>
Mon, 11 Jul 2011 13:11:12 +0000
(13:11 +0000)
applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
patch
|
blob
|
history
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 baced4a888636d581fa6b8c564cd3be410a1f4de..79604c263f61eb542eee94cdbcd256e0e3091a2a 100644
(file)
--- 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)
git clone https://git.99rst.org/PROJECT