|
|
@ -3,6 +3,8 @@
|
|
|
|
package udp
|
|
|
|
package udp
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
|
|
|
|
"net"
|
|
|
|
|
|
|
|
|
|
|
|
v2net "github.com/v2ray/v2ray-core/common/net"
|
|
|
|
v2net "github.com/v2ray/v2ray-core/common/net"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -13,3 +15,8 @@ func SetOriginalDestOptions(fd int) error {
|
|
|
|
func RetrieveOriginalDest(oob []byte) v2net.Destination {
|
|
|
|
func RetrieveOriginalDest(oob []byte) v2net.Destination {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
}
|
|
|
|