sing-box/common/redir/tproxy_other.go

23 lines
347 B
Go
Raw Normal View History

2022-07-15 08:42:02 +08:00
//go:build !linux
package redir
import (
"net/netip"
"os"
2022-09-25 17:13:42 +08:00
"github.com/sagernet/sing/common/control"
2022-07-15 08:42:02 +08:00
)
func TProxy(fd uintptr, isIPv6 bool) error {
return os.ErrInvalid
}
2022-09-25 17:13:42 +08:00
func TProxyWriteBack() control.Func {
return nil
2022-07-15 08:42:02 +08:00
}
2022-09-25 17:13:42 +08:00
func GetOriginalDestinationFromOOB(oob []byte) (netip.AddrPort, error) {
return netip.AddrPort{}, os.ErrInvalid
2022-07-15 08:42:02 +08:00
}