github.com/sagernet/tfo-go@v0.0.0-20231209031829-7b5343ac1dc6/tfo_unsupported.go (about) 1 //go:build !darwin && !freebsd && !linux && !windows 2 3 package tfo 4 5 import ( 6 "context" 7 "net" 8 ) 9 10 const comptimeNoTFO = true 11 12 func (*ListenConfig) listenTFO(ctx context.Context, network, address string) (net.Listener, error) { 13 return nil, ErrPlatformUnsupported 14 } 15 16 func (d *Dialer) dialTFO(ctx context.Context, network, address string, b []byte) (*net.TCPConn, error) { 17 if d.Fallback { 18 return d.dialAndWriteTCPConn(ctx, network, address, b) 19 } 20 return nil, ErrPlatformUnsupported 21 } 22 23 func dialTCPAddr(network string, laddr, raddr *net.TCPAddr, b []byte) (*net.TCPConn, error) { 24 return nil, ErrPlatformUnsupported 25 }