|
@ -1238,7 +1238,7 @@ exports.connect = function(/* [port, host], options, cb */) { |
|
|
var sslcontext = crypto.createCredentials(options); |
|
|
var sslcontext = crypto.createCredentials(options); |
|
|
|
|
|
|
|
|
convertNPNProtocols(options.NPNProtocols, this); |
|
|
convertNPNProtocols(options.NPNProtocols, this); |
|
|
var hostname = options.servername || options.host, |
|
|
var hostname = options.servername || options.host || 'localhost', |
|
|
pair = new SecurePair(sslcontext, false, true, |
|
|
pair = new SecurePair(sslcontext, false, true, |
|
|
options.rejectUnauthorized === true ? true : false, |
|
|
options.rejectUnauthorized === true ? true : false, |
|
|
{ |
|
|
{ |
|
|