fix reading udp packets

This commit is contained in:
Darien Raymond committed 2019-02-07 16:36:54 +01:00
1 parent 6e65007d16
commit 4f08b7c795
3 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -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 {