github.com/sagernet/sing-box@v1.9.0-rc.20/common/dialer/default_nongo1.20.go (about) 1 //go:build !go1.20 2 3 package dialer 4 5 import ( 6 "net" 7 8 E "github.com/sagernet/sing/common/exceptions" 9 ) 10 11 type tcpDialer = net.Dialer 12 13 func newTCPDialer(dialer net.Dialer, tfoEnabled bool) (tcpDialer, error) { 14 if tfoEnabled { 15 return dialer, E.New("TCP Fast Open requires go1.20, please recompile your binary.") 16 } 17 return dialer, nil 18 }