diff options
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua | 10 |
1 files changed, 9 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 d9f5ce6d8..7dc48774f 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua @@ -11,9 +11,16 @@ You may obtain a copy of the License at $Id$ ]]-- + +local nw = require "luci.model.network" +local fw = require "luci.model.firewall" + require("luci.tools.webadmin") m = Map("firewall", translate("Firewall"), translate("The firewall creates zones over your network interfaces to control network traffic flow.")) +fw.init(m.uci) +nw.init(m.uci) + s = m:section(TypedSection, "defaults") s.anonymous = true @@ -59,7 +66,8 @@ end s:option(Flag, "masq") net = s:option(MultiValue, "network") -net.widget = "select" +net.template = "cbi/network_netlist" +net.widget = "checkbox" net.rmempty = true luci.tools.webadmin.cbi_add_networks(net) |