fix: do not canonicalize hostname in list (#994)

This removes the brackets for connections with non-standard ports in the
dropdown list.
This commit is contained in:
Sylvie Crowe 2024-10-09 11:08:07 -07:00 committed by GitHub
parent d4f86f3a2f
commit 9f57d2d46b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}