mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-14 17:07:31 +00:00
match timeout
This commit is contained in:
parent
153c59d7ab
commit
099f8f8331
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ func firstResponseFromSSH(ctx context.Context, parsedKey any, username, hostport
|
|||
}
|
||||
|
||||
func sshDialWithContext(ctx context.Context, network, addr string, config *ssh.ClientConfig) (*ssh.Client, error) {
|
||||
d := net.Dialer{Timeout: config.Timeout}
|
||||
d := net.Dialer{}
|
||||
conn, err := d.DialContext(ctx, network, addr)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error dialing %s: %w", addr, err)
|
||||
|
|
Loading…
Reference in a new issue