From 4f8b70c8c6c4b7cee3c734964855c57dcf22f5e1 Mon Sep 17 00:00:00 2001 From: 5aaee9 <7685264+5aaee9@users.noreply.github.com> Date: Wed, 19 Mar 2025 12:20:48 +0800 Subject: [PATCH] fix: buffer in tproxy not recycle (#1923) --- listener/tproxy/udp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/listener/tproxy/udp.go b/listener/tproxy/udp.go index f738ef0d..14205e4d 100644 --- a/listener/tproxy/udp.go +++ b/listener/tproxy/udp.go @@ -76,6 +76,7 @@ func NewUDP(addr string, tunnel C.Tunnel, additions ...inbound.Addition) (*UDPLi rAddr, err := getOrigDst(oob[:oobn]) if err != nil { + pool.Put(buf) continue }