From 9f57d2d46b5af66a8800fb331bade95b5f9d39ad Mon Sep 17 00:00:00 2001 From: Sylvie Crowe <107814465+oneirocosm@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:08:07 -0700 Subject: [PATCH] fix: do not canonicalize hostname in list (#994) This removes the brackets for connections with non-standard ports in the dropdown list. --- pkg/remote/connutil.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/remote/connutil.go b/pkg/remote/connutil.go index dd5f63695..5c224e880 100644 --- a/pkg/remote/connutil.go +++ b/pkg/remote/connutil.go @@ -14,7 +14,6 @@ import ( "strings" "github.com/kevinburke/ssh_config" - "github.com/skeema/knownhosts" "golang.org/x/crypto/ssh" ) @@ -356,6 +355,5 @@ func NormalizeConfigPattern(pattern string) string { } else { port = ":" + port } - unnormalized := fmt.Sprintf("%s%s%s", userName, pattern, port) - return knownhosts.Normalize(unnormalized) + return fmt.Sprintf("%s%s%s", userName, pattern, port) }