소스 검색

Apply new read function to UDP hub.

v2ray 9 년 전
부모
커밋
d83a0ce5d2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      transport/internet/udp/hub.go

+ 1 - 1
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()