fix: tproxy high cpu usage (#1957)

This commit is contained in:
5aaee9 authored and GitHub committed 2025-04-03 23:52:19 +08:00
1 parent 7de24e26b4
commit ed7533ca1a
1 file changed
+1 -1
+1 -1
View File
@@ -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