cli(ssh): Use type instead of SubtypeFromId (#2497)

This commit is contained in:
Louis Ruch authored and GitHub committed 2022-09-26 14:04:15 -07:00
1 parent 2dfa1bb149
commit b31e6a8abc
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ func (s *sshFlags) buildArgs(c *Command, port, ip, _ string, creds credentials)
// Might want -t for ssh or -tt but seems fine without it for now...
args = append(args, "-p", port, ip)
switch string(target.SubtypeFromId(c.sessionAuthzData.GetTargetId())) {
switch c.sessionAuthzData.GetType() {
case "tcp":
// SSH detects a host key change when the localhost proxy port changes
// This uses the host ID instead of 'localhost:port'.