Check if netvm is set for ProxyVM before using it...
This commit is contained in:
parent
41800eb879
commit
48613fb911
@ -1104,7 +1104,8 @@ class QubesProxyVm(QubesNetVm):
|
|||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super(QubesProxyVm, self).__init__(uses_default_netvm=False, **kwargs)
|
super(QubesProxyVm, self).__init__(uses_default_netvm=False, **kwargs)
|
||||||
self.rules_applied = None
|
self.rules_applied = None
|
||||||
self.netvm_vm.add_external_ip_permission(self.get_xid())
|
if self.netvm_vm is not None:
|
||||||
|
self.netvm_vm.add_external_ip_permission(self.get_xid())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def type(self):
|
def type(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user