Set default port based on TLS setting

This commit is contained in:
Mattias Erming 2014-09-10 09:22:58 -07:00
parent d759c62481
commit 0e00f894a8
2 changed files with 2 additions and 2 deletions

View File

@ -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": {

View File

@ -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
});