node-xmpp-tls-connect
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "node-xmpp-tls-connect", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "tls.connect fallback", | ||
@@ -5,0 +5,0 @@ "main": "starttls.js", |
@@ -33,2 +33,4 @@ 'use strict'; | ||
var createSecureContext = tls.createSecureContext || crypto.createCredentials | ||
// Returns an array [options] or [options, cb] | ||
@@ -234,4 +236,4 @@ // It is the same as the argument of Socket.prototype.connect(). | ||
// https://github.com/dodo/node-tls-connect/issues/2 | ||
credentials = options.credentials || tls.createSecureContext(options); | ||
credentials = options.credentials || createSecureContext(options); | ||
if (tls.convertNPNProtocols) | ||
@@ -238,0 +240,0 @@ tls.convertNPNProtocols(options.NPNProtocols, NPN); |
14066
363