From d3890cd1056bc37ba291cf4965ac2f327f9a883f Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Thu, 4 Jun 2026 18:35:30 +0200 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- internal/socks5/udp_router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/socks5/udp_router.go b/internal/socks5/udp_router.go index 6c22609c..ab623747 100644 --- a/internal/socks5/udp_router.go +++ b/internal/socks5/udp_router.go @@ -48,7 +48,7 @@ func newUDPRouter(ctx context.Context, address string, logger Logger) (router *u listener: listener, bufferPool: sync.Pool{ New: func() any { - return bytes.NewBuffer(make([]byte, pooledUDPPacketBufferCapacity)) + return bytes.NewBuffer(make([]byte, 0, pooledUDPPacketBufferCapacity)) }, }, nextAssociationID: 1,