connect: Fix generated URI for IPv6 addresses

This commit is contained in:
Cole Robinson 2015-11-18 16:56:41 -05:00
parent 3b7366d608
commit 603fc361bc
1 changed files with 3 additions and 0 deletions

View File

@ -390,6 +390,9 @@ class vmmConnect(vmmGObjectUI):
addrstr = ""
if user:
addrstr += user + "@"
if host.count(":") > 1:
host = "[%s]" % host
addrstr += host
hoststr = ""