diff options
author | Steven Barth <steven@midlink.org> | 2008-08-19 17:51:13 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-19 17:51:13 +0000 |
commit | 6805eabaaa5698fd42784da87965b62bb88d91a2 (patch) | |
tree | af1a8e203a440586176e99b40e9f9273bccea4ea /modules | |
parent | 8000a4e7046c7d2e25f59c1adae2302dee0ea627 (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.lua | 2 |
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")) |