diff --git a/package.json b/package.json index 59188708..faefd81f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "shout", "description": "A web IRC client", - "version": "0.21.0", + "version": "0.21.1", "author": "Mattias Erming", "preferGlobal": true, "bin": { diff --git a/src/client.js b/src/client.js index cdeacc77..a61123da 100644 --- a/src/client.js +++ b/src/client.js @@ -91,7 +91,7 @@ Client.prototype.connect = function(args) { var client = this; var server = _.defaults(_.pick(args, ['host', 'port', 'rejectUnauthorized', 'name']), { host: "irc.freenode.org", - port: 6697, + port: args.tls ? 6697 : 6667, rejectUnauthorized: false });