github.com/sagernet/tfo-go@v0.0.0-20231209031829-7b5343ac1dc6/mptcp.go (about) 1 //go:build go1.21 2 3 package tfo 4 5 import ( 6 "net" 7 _ "unsafe" 8 ) 9 10 //go:linkname DialerMultipathTCP net.(*Dialer).MultipathTCP 11 func DialerMultipathTCP(d *net.Dialer) bool 12 13 //go:linkname DialerSetMultipathTCP net.(*Dialer).SetMultipathTCP 14 func DialerSetMultipathTCP(d *net.Dialer, use bool)