From 2755a46c4db548cbceafcfcdfa67d476b9c0a1c5 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 5 Aug 2008 12:58:20 +0000 Subject: applications/luci-splash: Updated to work with new UCI firewall --- applications/luci-splash/luasrc/model/cbi/splash/splash.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'applications/luci-splash/luasrc/model/cbi/splash/splash.lua') diff --git a/applications/luci-splash/luasrc/model/cbi/splash/splash.lua b/applications/luci-splash/luasrc/model/cbi/splash/splash.lua index 37ef559af2..ed5cdc181a 100644 --- a/applications/luci-splash/luasrc/model/cbi/splash/splash.lua +++ b/applications/luci-splash/luasrc/model/cbi/splash/splash.lua @@ -11,13 +11,13 @@ s.template = "cbi/tblsection" s.addremove = true s.anonymous = true -iface = s:option(ListValue, "network", "Schnittstelle") -luci.model.uci.foreach("network", "interface", +iface = s:option(ListValue, "zone", "Firewallzone") +luci.model.uci.foreach("firewall", "zone", function (section) - if section[".name"] ~= "loopback" then - iface:value(section[".name"]) - end + iface:value(section.name) end) + +gateway = s:option(Value, "gateway", "Gateway") s = m:section(TypedSection, "whitelist", "Automatische Freigabe") s.template = "cbi/tblsection" -- cgit v1.2.3