github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/common/redir/tproxy_other.go (about)

     1  //go:build !linux
     2  
     3  package redir
     4  
     5  import (
     6  	"net/netip"
     7  	"os"
     8  
     9  	"github.com/sagernet/sing/common/control"
    10  )
    11  
    12  func TProxy(fd uintptr, isIPv6 bool) error {
    13  	return os.ErrInvalid
    14  }
    15  
    16  func TProxyWriteBack() control.Func {
    17  	return nil
    18  }
    19  
    20  func GetOriginalDestinationFromOOB(oob []byte) (netip.AddrPort, error) {
    21  	return netip.AddrPort{}, os.ErrInvalid
    22  }