Browse files

Don't explicitly reject unauthorized connections.

The same behavior can be accomplished with rejectUnauthorized in socketOptions.
  • Loading branch information...
1 parent 613fbda commit 22740616940a1188c41223ffdb1e75540eb488ab @nsabovic nsabovic committed Sep 18, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 lib/connection.js
View
5 lib/connection.js
@@ -139,11 +139,6 @@ Connection.prototype.connect = function () {
this.options['gateway'],
socketOptions,
function () {
- if (!this.socket.authorized) {
- this.deferredConnection.reject(this.socket.authorizationError);
- return;
- }
-
if (this.connectionTimeout) {
clearTimeout(this.connectionTimeout);
}

0 comments on commit 2274061

Please sign in to comment.