modules/admin-full: only remove network if zones actually change
This commit is contained in:
parent
d3e65f3e1d
commit
0ee2d670c7
1 changed files with 1 additions and 3 deletions
|
@ -109,9 +109,6 @@ function fwzone.cfgvalue(self, section)
|
||||||
end
|
end
|
||||||
|
|
||||||
function fwzone.write(self, section, value)
|
function fwzone.write(self, section, value)
|
||||||
|
|
||||||
fw.del_network(section)
|
|
||||||
|
|
||||||
local zone = fw.get_zone(value)
|
local zone = fw.get_zone(value)
|
||||||
|
|
||||||
if not zone then
|
if not zone then
|
||||||
|
@ -122,6 +119,7 @@ function fwzone.write(self, section, value)
|
||||||
end
|
end
|
||||||
|
|
||||||
if zone then
|
if zone then
|
||||||
|
fw.del_network(section)
|
||||||
zone:add_network(section)
|
zone:add_network(section)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue