diff --git a/virtManager/connection.py b/virtManager/connection.py index a23811401..75dce812b 100644 --- a/virtManager/connection.py +++ b/virtManager/connection.py @@ -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