Skip to content

Commit

Permalink
fix ServerAliveInterval #150
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnywong authored Oct 13, 2024
1 parent 7a1d15b commit ab8cc44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tssh/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -1090,8 +1090,7 @@ func sshConnect(args *sshArgs, client SshClient, proxy string) (SshClient, *sshP

func keepAlive(client SshClient, args *sshArgs) {
getOptionValue := func(option string) int {
value, err := strconv.Atoi(getOptionConfig(args, option))
if err != nil {
if value, err := strconv.Atoi(getOptionConfig(args, option)); err == nil {
return value
}
return 0
Expand Down

0 comments on commit ab8cc44

Please sign in to comment.