quiclog / pcap2qlog

A tool to convert .pcap and .pcapng files into qlog files
MIT License
26 stars 7 forks source link

Fix a bug where CIDs is not updated correctly #6

Open zz85 opened 3 years ago

zz85 commented 3 years ago

In ParserPCAP.ts, CIDs is not updated correctly when a new CID is in index 0 of the client/serverIssuedCIDs. .indexOf() should be used with > -1 to check existence of a member, otherwise .includes() would be the better method (available with ECMAScript 2016)