github.com/metacubex/mihomo@v1.18.5/listener/tproxy/udp_other.go (about) 1 //go:build !linux 2 3 package tproxy 4 5 import ( 6 "errors" 7 "net" 8 "net/netip" 9 ) 10 11 func getOrigDst(oob []byte) (netip.AddrPort, error) { 12 return netip.AddrPort{}, errors.New("UDP redir not supported on current platform") 13 } 14 15 func getDSCP(oob []byte) (uint8, error) { 16 return 0, errors.New("UDP redir not supported on current platform") 17 } 18 19 func dialUDP(network string, lAddr, rAddr netip.AddrPort) (*net.UDPConn, error) { 20 return nil, errors.New("UDP redir not supported on current platform") 21 }