Skip to content

Commit 4f8b70c

Browse files
authored
fix: buffer in tproxy not recycle (MetaCubeX#1923)
1 parent dcef787 commit 4f8b70c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

listener/tproxy/udp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func NewUDP(addr string, tunnel C.Tunnel, additions ...inbound.Addition) (*UDPLi
7676

7777
rAddr, err := getOrigDst(oob[:oobn])
7878
if err != nil {
79+
pool.Put(buf)
7980
continue
8081
}
8182

0 commit comments

Comments
 (0)