Skip to content

Commit

Permalink
update Dial method comment
Browse files Browse the repository at this point in the history
  • Loading branch information
HouseK committed Oct 19, 2023
1 parent 9da4131 commit 127a3e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ssh/tcpip.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ func (l *tcpListener) Addr() net.Addr {

// Dial initiates a connection to the addr from the remote host.
// The resulting connection has a zero LocalAddr() and RemoteAddr().
// Like net.Dial
// For TCP addresses the port section of the address can be a service name.
// For TCP addresses the port section of the address can be a port number or a service name.
// Service names are resolved at the client side, domain names are resolved on the server.
func (c *Client) Dial(n, addr string) (net.Conn, error) {
var ch Channel
Expand Down

0 comments on commit 127a3e6

Please sign in to comment.