Skip to content

Commit 4905471

Browse files
tobiobrianc
authored andcommitted
Add ability to specify checkServerIdentity callback
1 parent 831dfb1 commit 4905471

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/connection.js

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Connection.prototype.connect = function (port, host) {
9494
self.stream = tls.connect({
9595
socket: self.stream,
9696
servername: host,
97+
checkServerIdentity: self.ssl.checkServerIdentity,
9798
rejectUnauthorized: self.ssl.rejectUnauthorized,
9899
ca: self.ssl.ca,
99100
pfx: self.ssl.pfx,

0 commit comments

Comments
 (0)