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
|
|
|
)
|
|
|
|
|
|
2025-05-18 13:45:50 +08:00
|
|
|
func TProxy(fd uintptr, isIPv6 bool, isUDP bool) error {
|
2022-07-15 08:42:02 +08:00
|
|
|
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
|
|
|
}
|