Reload firewall setting only there where needed
This commit is contained in:
parent
93b2b405b1
commit
bb3b8be82e
@ -267,13 +267,10 @@ class QubesFirewallRulesModel(QAbstractItemModel):
|
|||||||
if self.fw_changed:
|
if self.fw_changed:
|
||||||
self.__vm.write_firewall_conf(conf)
|
self.__vm.write_firewall_conf(conf)
|
||||||
|
|
||||||
qvm_collection = QubesVmCollection()
|
if self.__vm.is_running():
|
||||||
qvm_collection.lock_db_for_reading()
|
vm = self.__vm.netvm
|
||||||
qvm_collection.load()
|
while vm is not None:
|
||||||
qvm_collection.unlock_db()
|
if vm.is_proxyvm() and vm.is_running():
|
||||||
|
|
||||||
for vm in qvm_collection.values():
|
|
||||||
if vm.is_proxyvm():
|
|
||||||
vm.write_iptables_xenstore_entry()
|
vm.write_iptables_xenstore_entry()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user