github.com/metacubex/tfo-go@v0.0.0-20240228025757-be1269474a66/tfo_bsd.go (about)

     1  //go:build darwin || freebsd
     2  
     3  package tfo
     4  
     5  func setTFODialerFromSocket(fd uintptr) error {
     6  	return setTFODialer(fd)
     7  }
     8  
     9  // doConnectCanFallback returns whether err from [doConnect] indicates lack of TFO support.
    10  func doConnectCanFallback(err error) bool {
    11  	return false
    12  }