Skip to content

Commit

Permalink
fix(sshx): initialize SFTP connection when using proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasfrahm committed Apr 20, 2022
1 parent dfff15a commit 8435c31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/sshx/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ func NewClient(config *Config, options ...Option) (*Client, error) {
if client.SSH, err = ssh.Dial("tcp", address, normalizedConfig); err != nil {
return nil, err
}
if client.SFTP, err = sftp.NewClient(client.SSH); err != nil {
return nil, err
}
}

if client.SFTP, err = sftp.NewClient(client.SSH); err != nil {
return nil, err
}

return client, nil
Expand Down

0 comments on commit 8435c31

Please sign in to comment.