Skip to content

Commit

Permalink
use context in lookup port
Browse files Browse the repository at this point in the history
  • Loading branch information
HouseK committed Dec 4, 2023
1 parent 40517c7 commit f2112bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssh/tcpip.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (c *Client) dialContext(ctx context.Context, n, addr string) (net.Conn, err
if err != nil {
return nil, err
}
port, err := net.LookupPort(n, portString)
port, err := net.DefaultResolver.LookupPort(ctx, n, portString)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f2112bf

Please sign in to comment.