1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-30 05:55:20 -05:00

refine buffer usage

This commit is contained in:
Darien Raymond
2016-12-05 15:19:14 +01:00
parent 9ecf89657c
commit cf3eb0e77d
16 changed files with 73 additions and 45 deletions

View File

@@ -139,7 +139,7 @@ func (v *Server) handlerUDPPayload(payload *alloc.Buffer, session *proxy.Session
}
defer data.Release()
v.udpHub.WriteTo(data.Value, source)
v.udpHub.WriteTo(data.Bytes(), source)
})
}