From fe5dc64d1503712f68d53085aa5e53e3d0ea7270 Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Sat, 21 Sep 2024 14:01:45 -0400 Subject: [PATCH] Update packet_listener.go (#289) --- transport/socks5/packet_listener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/socks5/packet_listener.go b/transport/socks5/packet_listener.go index fbbbf4ed..1f9d21a5 100644 --- a/transport/socks5/packet_listener.go +++ b/transport/socks5/packet_listener.go @@ -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