2021-08-21 01:20:40 -04:00
|
|
|
//go:build !linux && !freebsd
|
2020-02-13 09:35:11 -05:00
|
|
|
// +build !linux,!freebsd
|
2016-08-15 11:44:46 -04:00
|
|
|
|
|
|
|
package udp
|
|
|
|
|
|
|
|
import (
|
2022-01-02 10:16:23 -05:00
|
|
|
"github.com/v2fly/v2ray-core/v5/common/net"
|
2016-08-15 11:44:46 -04:00
|
|
|
)
|
|
|
|
|
2017-08-29 06:56:57 -04:00
|
|
|
func RetrieveOriginalDest(oob []byte) net.Destination {
|
|
|
|
return net.Destination{}
|
2016-08-15 11:44:46 -04:00
|
|
|
}
|
2016-08-19 06:58:26 -04:00
|
|
|
|
|
|
|
func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error) {
|
|
|
|
nBytes, addr, err := conn.ReadFromUDP(payload)
|
|
|
|
return nBytes, 0, 0, addr, err
|
|
|
|
}
|