summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-06-19 17:53:20 +0200
committerJo-Philipp Wich <jo@mein.io>2018-06-22 11:15:39 +0200
commit5142e40f9e70a09653e07a4dbc2abd6db3da36e4 (patch)
treefdc89da71911f72820e3d6d9fa7a1d80a9909596 /applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua
parent69782ccbccd67bac08f43b692c2a05afddb41bf0 (diff)
luci-app-firewall: update cbi models
- allow multiple src/dest ips for rules (#1637) - restrict ICMP type list to ICMP protocol - add section title callbacks - remove size annotations - fix validation error with aliased zone fields (#1882) Fixes #1637, #1882. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua')
-rw-r--r--applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua b/applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua
index 2c5083a019..46402a8fc1 100644
--- a/applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua
+++ b/applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua
@@ -62,6 +62,11 @@ s.anonymous = true
s.addremove = true
s.extedit = ds.build_url("admin", "network", "firewall", "zones", "%s")
+function s.sectiontitle(self, sid)
+ local z = fw:get_zone(sid)
+ return z:name()
+end
+
function s.create(self)
local z = fw:new_zone()
if z then