Skip to content

Commit ed7533c

Browse files
authored
fix: tproxy high cpu usage (#1957)
1 parent 7de24e2 commit ed7533c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

listener/tproxy/udp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func NewUDP(addr string, tunnel C.Tunnel, additions ...inbound.Addition) (*UDPLi
8181
}
8282

8383
dscp, _ := getDSCP(oob[:oobn])
84-
additions = append(additions, inbound.WithDSCP(dscp))
84+
additions := append(additions, inbound.WithDSCP(dscp)) // don't change outside additions
8585

8686
if rAddr.Addr().Is4() {
8787
// try to unmap 4in6 address

0 commit comments

Comments
 (0)