summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-08 00:48:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-08 00:48:02 +0000
commit0ee2d670c771925304d1ded7293f52c734ff82fa (patch)
tree3cb6a7e0bdaee4db8a84063cb49569808cd4dffc /modules/admin-full/luasrc
parentd3e65f3e1d70dd45e1587e3a308a10925091cc90 (diff)
modules/admin-full: only remove network if zones actually change
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua4
1 files changed, 1 insertions, 3 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 37fab9f2b..db4d500f5 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
@@ -109,9 +109,6 @@ function fwzone.cfgvalue(self, section)
end
function fwzone.write(self, section, value)
-
- fw.del_network(section)
-
local zone = fw.get_zone(value)
if not zone then
@@ -122,6 +119,7 @@ function fwzone.write(self, section, value)
end
if zone then
+ fw.del_network(section)
zone:add_network(section)
end
end