mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Set default port based on TLS setting
This commit is contained in:
parent
d759c62481
commit
0e00f894a8
2 changed files with 2 additions and 2 deletions
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue