Skip to content

Commit

Permalink
Merge pull request #102 from 4poc/master
Browse files Browse the repository at this point in the history
Restore Fix for: Handle unverifiable self-signed certificates.
  • Loading branch information
martynsmith committed Oct 25, 2012
2 parents 4d219c0 + d5c7a87 commit 92feb5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92feb5c

Please sign in to comment.