Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix again for unverifiable self-signed certs.

  • Loading branch information...
commit d5c7a87ecaf17d7ceeca266e2f7a5a444e254e03 1 parent c60b696
@4poc 4poc authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/irc.js
View
5 lib/irc.js
@@ -496,8 +496,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
Please sign in to comment.
Something went wrong with that request. Please try again.