Skip to content

Commit

Permalink
fix ssl support
Browse files Browse the repository at this point in the history
  • Loading branch information
wzrdtales committed Jun 7, 2016
1 parent b9c3adc commit 1622480
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ globalTunnel._defaultedAgentRequest = function(protocol, options, callback) {
options.agent = httpOrHttps.globalAgent;
}

if( options.protocol === 'https:' )
options.port = options.port || 443;

return ORIGINALS[protocol].request.call(httpOrHttps, options, callback);
};

Expand Down

0 comments on commit 1622480

Please sign in to comment.