From: Darren Date: Mon, 18 Jul 2011 16:05:06 +0000 (+0100) Subject: Node listening fix from previous commit X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6130c5192a1a6960119975867647ed02271c4cc9;p=KiwiIRC.git Node listening fix from previous commit --- diff --git a/node/kiwi.js b/node/kiwi.js index 05a0e0b..986442b 100644 --- a/node/kiwi.js +++ b/node/kiwi.js @@ -272,9 +272,9 @@ var ircSocketDataHandler = function (data, websocket, ircSocket) { //setup websocket listener if (config.listen_ssl) { - var io = ws.listen('127.0.0.1:'+config.port.toString(), {secure: true, key: fs.readFileSync(__dirname + '/' + config.ssl_key), cert: fs.readFileSync(__dirname + '/' + config.ssl_cert)}); + var io = ws.listen(config.port, {secure: true, key: fs.readFileSync(__dirname + '/' + config.ssl_key), cert: fs.readFileSync(__dirname + '/' + config.ssl_cert)}); } else { - var io = ws.listen('127.0.0.1:'+config.port.toString(), {secure: false}); + var io = ws.listen(config.port, {secure: false}); } io.sockets.on('connection', function (websocket) { websocket.on('irc connect', function (nick, host, port, ssl, callback) {