File 603fc361-fix-generated-URI-for-IPv6-addresses.patch of Package virt-manager.2133
Subject: connect: Fix generated URI for IPv6 addresses
From: Cole Robinson crobinso@redhat.com Wed Nov 18 16:56:41 2015 -0500
Date: Wed Nov 18 16:56:41 2015 -0500:
Git: 603fc361bc07d6d5aefbffa55f073a12e6ec0117
Index: virt-manager-1.2.1/virtManager/connect.py
===================================================================
--- virt-manager-1.2.1.orig/virtManager/connect.py
+++ virt-manager-1.2.1/virtManager/connect.py
@@ -389,6 +389,9 @@ class vmmConnect(vmmGObjectUI):
addrstr = ""
if user:
addrstr += user + "@"
+
+ if host.count(":") > 1:
+ host = "[%s]" % host
addrstr += host
hoststr = ""