clash/listener/tproxy/udp_other.go

17 lines
365 B
Go
Raw Normal View History

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