diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-08 00:48:02 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-08 00:48:02 +0000 |
commit | 0ee2d670c771925304d1ded7293f52c734ff82fa (patch) | |
tree | 3cb6a7e0bdaee4db8a84063cb49569808cd4dffc /modules/admin-full/luasrc | |
parent | d3e65f3e1d70dd45e1587e3a308a10925091cc90 (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.lua | 4 |
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 37fab9f2bd..db4d500f5b 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 |