diff options
Diffstat (limited to 'applications/luci-fw/luasrc/model')
-rw-r--r-- | applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua index 38f95136d..81a0f65cf 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua @@ -19,6 +19,12 @@ s.anonymous = true s:option(Flag, "syn_flood") +local di = s:option(Flag, "drop_invalid", translate("fw_dropinvalid")) +di.rmempty = false +function di.cfgvalue(...) + return AbstractValue.cfgvalue(...) or "1" +end + p = {} p[1] = s:option(ListValue, "input") p[2] = s:option(ListValue, "output") @@ -56,7 +62,7 @@ net = s:option(MultiValue, "network") net.widget = "select" net.rmempty = true luci.tools.webadmin.cbi_add_networks(net) - + function net.cfgvalue(self, section) local value = MultiValue.cfgvalue(self, section) return value or name:cfgvalue(section) |