mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
console: spice: don't set port=None
Can happen if defaultMode=secure, only a tlsport is allocated
This commit is contained in:
parent
5efd7c6d96
commit
db6ef91b0b
@ -696,7 +696,8 @@ class SpiceViewer(Viewer):
|
||||
self._create_spice_session()
|
||||
|
||||
self.spice_session.set_property("host", str(host))
|
||||
self.spice_session.set_property("port", str(port))
|
||||
if port:
|
||||
self.spice_session.set_property("port", str(port))
|
||||
if tlsport:
|
||||
self.spice_session.set_property("tls-port", str(tlsport))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user