Skip to content

Commit

Permalink
Merge pull request #201 from antonva/master
Browse files Browse the repository at this point in the history
fixed connecting to self-signed servers
  • Loading branch information
Fionn Kelleher committed May 29, 2014
2 parents b9485d7 + 124014e commit f8e6b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irc.js
Expand Up @@ -594,7 +594,7 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
if (self.opt.secure) {
var creds = self.opt.secure;
if (typeof self.opt.secure !== 'object') {
creds = {};
creds = {rejectUnauthorized: !self.opt.selfSigned};
}

self.conn = tls.connect(self.opt.port, self.opt.server, creds, function() {
Expand Down

0 comments on commit f8e6b65

Please sign in to comment.