github.com/chwjbn/xclash@v0.2.0/listener/tproxy/udp_other.go (about) 1 //go:build !linux 2 // +build !linux 3 4 package tproxy 5 6 import ( 7 "errors" 8 "net" 9 ) 10 11 func getOrigDst(oob []byte, oobn int) (*net.UDPAddr, error) { 12 return nil, errors.New("UDP redir not supported on current platform") 13 } 14 15 func dialUDP(network string, lAddr *net.UDPAddr, rAddr *net.UDPAddr) (*net.UDPConn, error) { 16 return nil, errors.New("UDP redir not supported on current platform") 17 }