Skip to content

Commit

Permalink
fix: allow "none"to override proxyJump
Browse files Browse the repository at this point in the history
  • Loading branch information
oneirocosm committed Oct 23, 2024
1 parent c0d486e commit eb69b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/remote/sshclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ func findSshConfigKeywords(hostPattern string) (*SshKeywords, error) {
proxyJumpSplit := strings.Split(proxyJumpRaw, ",")
for _, proxyJumpName := range proxyJumpSplit {
proxyJumpName = strings.TrimSpace(proxyJumpName)
if proxyJumpName == "" {
if proxyJumpName == "" || strings.ToLower(proxyJumpName) == "none" {
continue
}
sshKeywords.ProxyJump = append(sshKeywords.ProxyJump, proxyJumpName)
Expand Down

0 comments on commit eb69b1b

Please sign in to comment.