Skip to content

Commit d3a9797

Browse files
committed
Add ability to specify checkServerIdentity callback
1 parent b0a2fe4 commit d3a9797

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/connection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Connection.prototype.connect = function(port, host) {
106106
self.stream = tls.connect({
107107
socket: self.stream,
108108
servername: host,
109+
checkServerIdentity: self.ssl.checkServerIdentity,
109110
rejectUnauthorized: self.ssl.rejectUnauthorized,
110111
ca: self.ssl.ca,
111112
pfx: self.ssl.pfx,

0 commit comments

Comments
 (0)