mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 08:47:09 +00:00
chore: add a code comment for tproxy listener
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user