1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

Apply new read function to UDP hub.

This commit is contained in:
v2ray 2016-08-19 13:00:55 +02:00
parent 55e5268ce8
commit d83a0ce5d2
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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()