tproxy_other.go 347 B

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