chore: add a code comment for tproxy listener

This commit is contained in:
wwqgtxx
2025-12-31 02:07:52 +08:00
parent 10f4bebdfa
commit eb30d3f331

View File

@@ -46,6 +46,9 @@ func New(addr string, tunnel C.Tunnel, additions ...inbound.Addition) (*Listener
inbound.WithSpecialRules(""),
}
}
//TODO: When we upgrade the major version of go.mod to 1.24 or higher, disable mptcp for tproxy.
// Golang will then enable mptcp support for listeners by default.
// This can cause tproxy to malfunction on certain Linux kernel versions.
l, err := net.Listen("tcp", addr)
if err != nil {
return nil, err