github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/udp/hub_other.go (about) 1 //go:build !linux && !freebsd 2 // +build !linux,!freebsd 3 4 package udp 5 6 import ( 7 "github.com/v2fly/v2ray-core/v5/common/net" 8 ) 9 10 func RetrieveOriginalDest(oob []byte) net.Destination { 11 return net.Destination{} 12 } 13 14 func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error) { 15 nBytes, addr, err := conn.ReadFromUDP(payload) 16 return nBytes, 0, 0, addr, err 17 }