mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-14 01:57:44 +03:00
Fix connecting to graphics console with listen= address
This commit is contained in:
parent
3455dccf89
commit
422c0216d8
@ -953,6 +953,12 @@ class vmmDomain(vmmLibvirtObject):
|
|||||||
gport = int(gport)
|
gport = int(gport)
|
||||||
gtype = gdev.type
|
gtype = gdev.type
|
||||||
gaddr = "127.0.0.1"
|
gaddr = "127.0.0.1"
|
||||||
|
if gdev.listen != None:
|
||||||
|
gaddr = gdev.listen
|
||||||
|
connhost = gaddr
|
||||||
|
if gport != None:
|
||||||
|
connhost += ":"
|
||||||
|
connhost += str(gport)
|
||||||
gsocket = gdev.socket
|
gsocket = gdev.socket
|
||||||
|
|
||||||
if connhost == None:
|
if connhost == None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user