tls: Provide buffer to Connection.setSession
This commit is contained in:
parent
bfb9d5bbe6
commit
4266f5cf2e
@ -1296,7 +1296,10 @@ exports.connect = function(/* [port, host], options, cb */) {
|
||||
});
|
||||
|
||||
if (options.session) {
|
||||
pair.ssl.setSession(options.session);
|
||||
var session = options.session;
|
||||
if (typeof session === 'string')
|
||||
session = new Buffer(session, 'binary');
|
||||
pair.ssl.setSession(session);
|
||||
}
|
||||
|
||||
var cleartext = pipe(pair, socket);
|
||||
|
Loading…
x
Reference in New Issue
Block a user