From f2b094dc7fe81b1f175d24119787fbb829dad7bd Mon Sep 17 00:00:00 2001 From: charlielin Date: Tue, 17 Sep 2019 15:53:33 +0800 Subject: [PATCH] add support for customizing SNI for TunnelingAgent --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3ee9abc..f9d5a65 100644 --- a/index.js +++ b/index.js @@ -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 } ))