sing-box/common/redir/tproxy_other.go

23 lines
347 B
Go
Raw Normal View History

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