Skip to content

Commit

Permalink
Separate -l and the user name when building ssh args
Browse files Browse the repository at this point in the history
  • Loading branch information
Crosse committed Oct 18, 2022
1 parent f9681fb commit 13a6cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func parseArgs(args []string) (sshArgs []string, host string, sshCommand []strin
} else {
if strings.Contains(arg, "@") {
x := strings.Split(arg, "@")
sshArgs = append(sshArgs, fmt.Sprintf("-l %v", x[0]))
sshArgs = append(sshArgs, "-l", x[0])
host = x[1]
} else {
host = arg
Expand Down

0 comments on commit 13a6cc4

Please sign in to comment.