vm/qubesvm: write QubesDB /qubes-netvm-gateway6 entry when set

This is needed for network-providing VM to actually provide IPv6
connection too.

QubesOS/qubes-issues#718
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-07 01:32:57 +01:00
parent e12a66f103
commit faef890c9a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1818,6 +1818,9 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
# '/qubes-netvm-network' value is only checked for being non empty
self.untrusted_qdb.write('/qubes-netvm-network', str(self.gateway))
self.untrusted_qdb.write('/qubes-netvm-gateway', str(self.gateway))
if self.gateway6:
self.untrusted_qdb.write('/qubes-netvm-gateway6',
str(self.gateway6))
self.untrusted_qdb.write('/qubes-netvm-netmask', str(self.netmask))
for i, addr in zip(('primary', 'secondary'), self.dns):