qubes/firewall: apply only IPv4 rules

Currently dom0 do not assign IPv6 addresses for VMs, so there is no
sense in IPv6 firewall yet.

QubesOS/qubes-issues#1815
This commit is contained in:
Marek Marczykowski-Górecki 2016-09-12 06:05:42 +02:00
parent 202042bd8d
commit cdc97730cd
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -269,7 +269,7 @@ class NetVMMixin(qubes.events.Emitter):
# would trigger reload right away
self.qdb.rm(base_dir)
# write new rules
for key, value in vm.firewall.qdb_entries().items():
for key, value in vm.firewall.qdb_entries(addr_family=4).items():
self.qdb.write(base_dir + key, value)
# signal its done
self.qdb.write(base_dir[:-1], '')