sing-box/common/redir/tproxy_other.go

26 lines
437 B
Go
Raw Normal View History

2022-07-15 00:42:02 +00:00
//go:build !linux
package redir
import (
"net"
"net/netip"
"os"
)
func TProxy(fd uintptr, isIPv6 bool) error {
return os.ErrInvalid
}
func TProxyUDP(fd uintptr, isIPv6 bool) error {
return os.ErrInvalid
}
func GetOriginalDestinationFromOOB(oob []byte) (netip.AddrPort, error) {
return netip.AddrPort{}, os.ErrInvalid
}
2022-07-17 00:46:24 +00:00
func DialUDP(lAddr *net.UDPAddr, rAddr *net.UDPAddr) (*net.UDPConn, error) {
2022-07-15 00:42:02 +00:00
return nil, os.ErrInvalid
}