From 52b27d90c8a864c64473f97a6493dd3a0f9feda4 Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 22 Aug 2013 20:48:15 +0100 Subject: [PATCH] Correctly reading restrict_server_ssl from config --- server/client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/client.js b/server/client.js index 3caef07..0ae4f50 100755 --- a/server/client.js +++ b/server/client.js @@ -118,7 +118,9 @@ function kiwiCommand(command, callback) { this.state.connect( (global.config.restrict_server || command.hostname), (global.config.restrict_server_port || command.port), - (global.config.restrict_server_ssl || command.ssl), + (typeof global.config.restrict_server_ssl !== 'undefined' ? + global.config.restrict_server_ssl : + command.ssl), command.nick, {hostname: this.websocket.handshake.revdns, address: this.websocket.handshake.real_address}, (global.config.restrict_server_password || command.password), -- 2.25.1