github.com/igoogolx/clash@v1.19.8/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 dialUDP(network string, lAddr, rAddr netip.AddrPort) (*net.UDPConn, error) {
    16  	return nil, errors.New("UDP redir not supported on current platform")
    17  }