From d83a0ce5d206d0ed126fde5b0cb17a91e2715646 Mon Sep 17 00:00:00 2001 From: v2ray Date: Fri, 19 Aug 2016 13:00:55 +0200 Subject: [PATCH] Apply new read function to UDP hub. --- transport/internet/udp/hub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/udp/hub.go b/transport/internet/udp/hub.go index 7848c8ab..e83f411e 100644 --- a/transport/internet/udp/hub.go +++ b/transport/internet/udp/hub.go @@ -76,7 +76,7 @@ func (this *UDPHub) start() { oobBytes := make([]byte, 256) for this.Running() { buffer := alloc.NewBuffer() - nBytes, noob, _, addr, err := this.conn.ReadMsgUDP(buffer.Value, oobBytes) + nBytes, noob, _, addr, err := ReadUDPMsg(this.conn, buffer.Value, oobBytes) if err != nil { log.Info("UDP|Hub: Failed to read UDP msg: ", err) buffer.Release()