diff --git a/lib/irc.js b/lib/irc.js index a45e35f7..44790ffe 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -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