Skip to content

Commit

Permalink
fix: add condition which allows code in callback to be reachable (#2376)
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Heyns <jheyns@mit.edu>
  • Loading branch information
juanheyns and juanheyns committed Jan 17, 2024
1 parent a8b71b4 commit 8d5b903
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/connection.js
Expand Up @@ -362,6 +362,9 @@ class Connection extends EventEmitter {
const secureSocket = Tls.connect({
rejectUnauthorized,
requestCert: rejectUnauthorized,
checkServerIdentity: verifyIdentity
? Tls.checkServerIdentity
: function() { return undefined; },
secureContext,
isServer: false,
socket: this.stream,
Expand Down

0 comments on commit 8d5b903

Please sign in to comment.