diff --git a/client/views/windows/connect.tpl b/client/views/windows/connect.tpl
index eb1f0302..56ab219d 100644
--- a/client/views/windows/connect.tpl
+++ b/client/views/windows/connect.tpl
@@ -45,8 +45,8 @@
diff --git a/src/client.js b/src/client.js
index 58f77c9d..f69f6991 100644
--- a/src/client.js
+++ b/src/client.js
@@ -178,7 +178,7 @@ Client.prototype.connect = function(args) {
host: args.host || "",
port: parseInt(args.port, 10) || (args.tls ? 6697 : 6667),
tls: !!args.tls,
- rejectUnauthorized: !args.allowUnauthorized,
+ rejectUnauthorized: !!args.rejectUnauthorized,
password: args.password,
username: args.username || nick.replace(/[^a-zA-Z0-9]/g, ""),
realname: args.realname || "The Lounge User",