From: Jo-Philipp Wich Date: Thu, 8 Oct 2009 00:48:02 +0000 (+0000) Subject: modules/admin-full: only remove network if zones actually change X-Git-Tag: 0.10.0~1111 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0ee2d670c771925304d1ded7293f52c734ff82fa;p=oweals%2Fluci.git modules/admin-full: only remove network if zones actually change --- 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