Permalink
Browse files

Merge pull request #102 from 4poc/master

Restore Fix for: Handle unverifiable self-signed certificates.
  • Loading branch information...
2 parents 4d219c0 + d5c7a87 commit 92feb5c5ea033676e7fb0a9eb51bdf18c01af2c4 @martynsmith committed Oct 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/irc.js
View
@@ -500,8 +500,9 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
// callback called only after successful socket connection
self.conn.connected = true;
if (self.conn.authorized ||
- (self.opt.selfSigned &&
- self.conn.authorizationError === 'DEPTH_ZERO_SELF_SIGNED_CERT') ||
+ (self.opt.selfSigned &&
+ (self.conn.authorizationError === 'DEPTH_ZERO_SELF_SIGNED_CERT' ||
+ self.conn.authorizationError === 'UNABLE_TO_VERIFY_LEAF_SIGNATURE')) ||
(self.opt.certExpired &&
self.conn.authorizationError === 'CERT_HAS_EXPIRED')) {
// authorization successful

0 comments on commit 92feb5c

Please sign in to comment.