summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-19 17:51:13 +0000
committerSteven Barth <steven@midlink.org>2008-08-19 17:51:13 +0000
commit6805eabaaa5698fd42784da87965b62bb88d91a2 (patch)
treeaf1a8e203a440586176e99b40e9f9273bccea4ea /modules
parent8000a4e7046c7d2e25f59c1adae2302dee0ea627 (diff)
modules/admin-full: Correctly unload firewall config in network configuration page
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
index 1a41ed271..716631232 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
@@ -49,6 +49,7 @@ if zones then
fwzone.rmempty = true
fwzone:value("", "- " .. translate("none") .. " -")
fwzone:value(arg[1])
+ luci.model.uci.load_config("firewall")
luci.model.uci.foreach("firewall", "zone",
function (section)
fwzone:value(section.name)
@@ -79,6 +80,7 @@ if zones then
fwzone.value = table.concat(zones, ", ")
end
fwzone.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "zones")
+ luci.model.uci.unload("firewall")
end
ipaddr = s:option(Value, "ipaddr", translate("ipaddress"))