diff --git a/lib/sender.js b/lib/sender.js index c129ae9..ff5cb6a 100644 --- a/lib/sender.js +++ b/lib/sender.js @@ -1225,7 +1225,7 @@ class Sender extends EventEmitter { if ( (err.code === 'ETLS' || - /SSL23_GET_SERVER_HELLO|\/deps\/openssl|ssl3_check|SSL routines/i.test(err.message) || + /SSL23_GET_SERVER_HELLO|\/deps\/openssl|ssl3_check|ssl3_get_record|SSL routines/i.test(err.message) || err.code === 'ECONNRESET') && !ignoreTLS && !enforceTLS