Merge pull request #5 from joewalnes/master
Fix client connection errors on node 0.4.11
This commit is contained in:
commit
bef8e5a62e
|
@ -139,9 +139,9 @@ 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);
|
||||
c = net.createConnection(self.connectOptions.port, self.connectOptions.host);
|
||||
}
|
||||
assert.ok(c);
|
||||
|
||||
|
|
Loading…
Reference in New Issue