github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/common/dialer/default_go1.20.go (about) 1 //go:build go1.20 2 3 package dialer 4 5 import ( 6 "net" 7 8 "github.com/sagernet/tfo-go" 9 ) 10 11 type tcpDialer = tfo.Dialer 12 13 func newTCPDialer(dialer net.Dialer, tfoEnabled bool) (tcpDialer, error) { 14 return tfo.Dialer{Dialer: dialer, DisableTFO: !tfoEnabled}, nil 15 }