Skip to content

Commit

Permalink
Don't explicitly reject unauthorized connections.
Browse files Browse the repository at this point in the history
The same behavior can be accomplished with rejectUnauthorized in socketOptions.
  • Loading branch information
nsabovic committed Sep 18, 2012
1 parent 613fbda commit 2274061
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2274061

Please sign in to comment.