Fix connecting to graphics console with listen= address

This commit is contained in:
Tuomas Jormola 2012-03-13 11:29:47 -04:00 committed by Cole Robinson
parent 3455dccf89
commit 422c0216d8

View File

@ -953,6 +953,12 @@ class vmmDomain(vmmLibvirtObject):
gport = int(gport)
gtype = gdev.type
gaddr = "127.0.0.1"
if gdev.listen != None:
gaddr = gdev.listen
connhost = gaddr
if gport != None:
connhost += ":"
connhost += str(gport)
gsocket = gdev.socket
if connhost == None: