Apply new read function to UDP hub.

pull/255/head v1.24.4
v2ray 8 years ago
parent 55e5268ce8
commit d83a0ce5d2
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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

Loading…
Cancel
Save