Skip to content

Commit

Permalink
Update packet_listener.go (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna authored Sep 21, 2024
1 parent f65586c commit fe5dc64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/socks5/packet_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (p *packetConn) Close() error {
return errors.Join(p.sc.Close(), p.pc.Close())
}

// ListenPacket creates a [net.PacketConn] for dialing to SOCKS5 server.
// ListenPacket creates a [net.PacketConn] for UDP communication via the SOCKS5 server.
func (c *Client) ListenPacket(ctx context.Context) (net.PacketConn, error) {
// Connect to the SOCKS5 server and perform UDP association
// Since local address is not known in advance, we use unspecified address
Expand Down

0 comments on commit fe5dc64

Please sign in to comment.