Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/parsers/ParserPCAP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export class ParserPCAP {
}

// server issued this CID, so the client can use it to contact the server
if ( trace.serverIssuedCIDs.indexOf(header.dcid!) ) { // if undefined, it's just not initialized yet: skip
if ( trace.serverIssuedCIDs.includes(header.dcid!) ) { // if undefined, it's just not initialized yet: skip

this.addEvent(trace, [ // Log the change of cid
"" + trace.currentTime,
Expand All @@ -475,7 +475,7 @@ export class ParserPCAP {
trace.currentServerCID = header.dcid;
}

else if ( trace.clientIssuedCIDs.indexOf(header.dcid!) ) {
else if ( trace.clientIssuedCIDs.includes(header.dcid!) ) {

this.addEvent(trace, [ // Log the change of cid
"" + trace.currentTime,
Expand Down