diff --git a/src/node_modules/filter/decoder.js b/src/node_modules/filter/decoder.js index b7237e3..35ffbf3 100644 --- a/src/node_modules/filter/decoder.js +++ b/src/node_modules/filter/decoder.js @@ -51,9 +51,13 @@ module.exports = class Decoder extends Transform { const isCipher = record.type === contentType.CHANGE_CIPHER_SPEC; if (!isAlert && !isCipher) { - debug('decrypt record layer'); - this.session.decrypt(record); - debug('decryption success'); + try { + debug('decrypt record layer'); + this.session.decrypt(record); + debug('decryption success'); + } catch (err) { + debug('decryption error, ignore'); + } } if (isHandshake) {