git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
8000a4e
)
modules/admin-full: Correctly unload firewall config in network configuration page
author
Steven Barth
<redacted>
Tue, 19 Aug 2008 17:51:13 +0000
(17:51 +0000)
committer
Steven Barth
<redacted>
Tue, 19 Aug 2008 17:51:13 +0000
(17:51 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
patch
|
blob
|
history
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 1a41ed271e0fdf680b993210f0df143c1767886e..716631232b60c03ce7cb1d75eade49e0327a243c 100644
(file)
--- 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"))
git clone https://git.99rst.org/PROJECT