Fix error from missing tls.createConnection() method:

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
TypeError: Object #<Object> has no method 'createConnection'
    at newConnection (/usr/local/lib/node/.npm/ldapjs/0.1.0/package/lib/client.js:142:15)
    at new Client (/usr/local/lib/node/.npm/ldapjs/0.1.0/package/lib/client.js:223:27)
    at Object.createClient (/usr/local/lib/node/.npm/ldapjs/0.1.0/package/lib/index.js:48:12)
This commit is contained in:
Joe Walnes 2011-08-26 15:44:13 -05:00
parent 84b1926aac
commit e483f428b4
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ function Client(options) {
function newConnection() {
var c;
if (self.secure) {
c = tls.createConnection(self.connectOptions);
c = tls.connect(self.connectOptions.port, self.connectOptions.host);
} else {
c = net.createConnection(self.connectOptions.port, self.connectOptions.host);
}