Skip to content

Commit

Permalink
style: simplify host string
Browse files Browse the repository at this point in the history
  • Loading branch information
d-strobel committed Oct 15, 2023
1 parent 645caab commit 92a26ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func newSSHClient(config *SSHConfig) (*ssh.Client, error) {
}

// Parse ssh host string
sshHost := fmt.Sprintf("%s:%s", config.SSHHost, fmt.Sprint(config.SSHPort))
sshHost := fmt.Sprintf("%s:%d", config.SSHHost, config.SSHPort)

// Configuration
sshConfig := &ssh.ClientConfig{
Expand Down

0 comments on commit 92a26ed

Please sign in to comment.