mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-09 08:40:12 +00:00
fix reading udp packets
This commit is contained in:
3 files changed
+9
-4
No files matched your search
@@ -200,7 +200,7 @@ func (s *Server) handleUDPPayload(ctx context.Context, conn internet.Connection,
|
||||
newError("client UDP connection from ", inbound.Source).WriteToLog(session.ExportIDToError(ctx))
|
||||
}
|
||||
|
||||
reader := buf.NewReader(conn)
|
||||
reader := &buf.PacketReader{Reader: conn}
|
||||
for {
|
||||
mpayload, err := reader.ReadMultiBuffer()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user