modules/admin-full: only remove network if zones actually change

This commit is contained in:
Jo-Philipp Wich 2009-10-08 00:48:02 +00:00
parent d3e65f3e1d
commit 0ee2d670c7

View file

@ -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