From ed7533ca1a2a595db48c4600cb11e6e792cfc612 Mon Sep 17 00:00:00 2001 From: 5aaee9 <7685264+5aaee9@users.noreply.github.com> Date: Thu, 3 Apr 2025 08:52:19 -0700 Subject: [PATCH] fix: tproxy high cpu usage (#1957) --- listener/tproxy/udp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listener/tproxy/udp.go b/listener/tproxy/udp.go index 14205e4d..22b4d696 100644 --- a/listener/tproxy/udp.go +++ b/listener/tproxy/udp.go @@ -81,7 +81,7 @@ func NewUDP(addr string, tunnel C.Tunnel, additions ...inbound.Addition) (*UDPLi } dscp, _ := getDSCP(oob[:oobn]) - additions = append(additions, inbound.WithDSCP(dscp)) + additions := append(additions, inbound.WithDSCP(dscp)) // don't change outside additions if rAddr.Addr().Is4() { // try to unmap 4in6 address