Skip to content

Commit

Permalink
fix(tls): sender.js will on a tls failure try a delivery with out tls…
Browse files Browse the repository at this point in the history
…. However on freebsd 13 a misconfigured server may show (#393)

35242434560:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:/usr/src/crypto/openssl/ssl/record/ssl3_record.c:339:
But this is not detected as a tls failure and the delivery does not succeed. sender.js has been updated for this error

Co-authored-by: JQuags <john@interservernet>
  • Loading branch information
JQuags and JQuags authored May 28, 2024
1 parent 7d70c0c commit 530b495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 530b495

Please sign in to comment.