clash/listener/tproxy/udp_other.go

18 lines
373 B
Go
Raw Normal View History

2021-08-18 05:26:23 +00:00
//go:build !linux
2021-06-13 09:23:10 +00:00
package tproxy
import (
"errors"
"net"
"net/netip"
)
func getOrigDst(oob []byte) (netip.AddrPort, error) {
return netip.AddrPort{}, errors.New("UDP redir not supported on current platform")
2021-06-13 09:23:10 +00:00
}
func dialUDP(network string, lAddr, rAddr netip.AddrPort) (*net.UDPConn, error) {
return nil, errors.New("UDP redir not supported on current platform")
}