fix: tproxy high cpu usage (#1957)

This commit is contained in:
5aaee9 2025-04-03 08:52:19 -07:00 committed by GitHub
parent 7de24e26b4
commit ed7533ca1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,7 @@ func NewUDP(addr string, tunnel C.Tunnel, additions ...inbound.Addition) (*UDPLi
} }
dscp, _ := getDSCP(oob[:oobn]) 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() { if rAddr.Addr().Is4() {
// try to unmap 4in6 address // try to unmap 4in6 address