mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virtManager: show correctly IPv6 addresses
VirtualConnection.get_uri_host_port already splits this information taking care of IPv6 addresses, do not split it again. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1094631 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@@ -382,10 +382,6 @@ class vmmConnection(vmmGObject):
|
||||
transport = scheme.split("+")[1]
|
||||
scheme = scheme.split("+")[0]
|
||||
|
||||
if hostname.count(":"):
|
||||
port = hostname.split(":")[1]
|
||||
hostname = hostname.split(":")[0]
|
||||
|
||||
if hostname:
|
||||
if show_user and username:
|
||||
hostname = username + "@" + hostname
|
||||
|
||||
Reference in New Issue
Block a user