Skip padding in noise

This commit is contained in:
Tony Garnock-Jones 2024-05-19 21:13:22 +02:00
parent a8438f9191
commit b4b5f5b111
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ export class Relay extends LayerBoundary {
while (true) {
const rawPacket = this.decoder.try_next();
if (rawPacket === void 0) break;
if (rawPacket === false) continue;
const wirePacket = IO.toPacket(rawPacket);
if (wirePacket === void 0) throw new Error("Bad IO.Packet");
if (this.debug) console.log('IN', stringify(rawPacket));