Skip to content

Commit

Permalink
Allow overriding SNI servername via options, fix #36
Browse files Browse the repository at this point in the history
  • Loading branch information
odinho committed Dec 13, 2017
1 parent eb2b1b1 commit 0e10a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function createSecureSocket(options, cb) {
TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
// 0 is dummy port for v0.6
var secureSocket = tls.connect(0, mergeOptions({}, self.options,
{ servername: options.host
{ servername: self.options.servername || options.host
, socket: socket

This comment has been minimized.

Copy link
@rozaimialli

rozaimialli Jan 22, 2018

Ok

}
))
Expand Down

0 comments on commit 0e10a07

Please sign in to comment.