hub_other.go 400 B

1234567891011121314151617181920
  1. // +build !linux
  2. package udp
  3. import (
  4. "v2ray.com/core/common/net"
  5. )
  6. func SetOriginalDestOptions(fd int) error {
  7. return nil
  8. }
  9. func RetrieveOriginalDest(oob []byte) net.Destination {
  10. return net.Destination{}
  11. }
  12. func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error) {
  13. nBytes, addr, err := conn.ReadFromUDP(payload)
  14. return nBytes, 0, 0, addr, err
  15. }