Skip to content

Commit c9173db

Browse files
committed
Add ability to specify checkServerIdentity callback
1 parent f66379f commit c9173db

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
@@ -88,6 +88,7 @@ Connection.prototype.connect = function (port, host) {
8888
self.stream = tls.connect({
8989
socket: self.stream,
9090
servername: host,
91+
checkServerIdentity: self.ssl.checkServerIdentity,
9192
rejectUnauthorized: self.ssl.rejectUnauthorized,
9293
ca: self.ssl.ca,
9394
pfx: self.ssl.pfx,

0 commit comments

Comments
 (0)