Skip to content

Commit

Permalink
Add comment about service names
Browse files Browse the repository at this point in the history
  • Loading branch information
HouseK committed Oct 19, 2023
1 parent 6b972a0 commit 9da4131
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssh/tcpip.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ 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.
// 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
switch n {
Expand Down

0 comments on commit 9da4131

Please sign in to comment.