From: Darren Date: Thu, 22 Aug 2013 19:48:15 +0000 (+0100) Subject: Correctly reading restrict_server_ssl from config X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=52b27d90c8a864c64473f97a6493dd3a0f9feda4;p=KiwiIRC.git Correctly reading restrict_server_ssl from config --- 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),