dom0/qvm-firewall: eliminate duplicate firewall defaults definition (#599)

This caused ignore of different firewall defaults for TemplateVM.
This commit is contained in:
Marek Marczykowski 2012-06-18 23:51:44 +02:00 committed by Joanna Rutkowska
parent da70b2ac03
commit 6b8f090223

View File

@ -2005,10 +2005,7 @@ class QubesProxyVm(QubesNetVm):
vms = [vm for vm in self.connected_vms.values()]
for vm in vms:
iptables="*filter\n"
if vm.has_firewall():
conf = vm.get_firewall_conf()
else:
conf = { "rules": list(), "allow": True, "allowDns": True, "allowIcmp": True, "allowYumProxy": False }
conf = vm.get_firewall_conf()
xid = vm.get_xid()
if xid < 0: # VM not active ATM