diff --git a/index.js b/index.js index 3ee9abc..99420ca 100644 --- a/index.js +++ b/index.js @@ -123,6 +123,7 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { { method: 'CONNECT' , path: options.host + ':' + options.port , agent: false + , servername: self.proxyOptions.host } ) if (connectOptions.proxyAuth) {