Skip to content

Commit 8d5b903

Browse files
authored
fix: add condition which allows code in callback to be reachable (#2376)
Co-authored-by: Juan Heyns <jheyns@mit.edu>
1 parent a8b71b4 commit 8d5b903

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/connection.js

+3
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ class Connection extends EventEmitter {
362362
const secureSocket = Tls.connect({
363363
rejectUnauthorized,
364364
requestCert: rejectUnauthorized,
365+
checkServerIdentity: verifyIdentity
366+
? Tls.checkServerIdentity
367+
: function() { return undefined; },
365368
secureContext,
366369
isServer: false,
367370
socket: this.stream,

0 commit comments

Comments
 (0)