mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-21 21:32:13 +01:00
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:
parent
d4f86f3a2f
commit
9f57d2d46b
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user