Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passing through tls options #216

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ function Client(server, nick, opt) {
sasl: false,
stripColors: false,
channelPrefixes: "&#",
messageSplit: 512
messageSplit: 512,
rejectUnauthorized: true // set to false for self signed certs
};

// Features supported by the server
Expand Down Expand Up @@ -596,7 +597,9 @@ 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.rejectUnauthorized
};
}

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