From ca04d5f225f8fd3654310d75876e5285fec6f548 Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 24 Sep 2011 23:16:45 +0100 Subject: [PATCH] Added listening to specific net. interfaces --- node/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/app.js b/node/app.js index 7f0dec0..b8cae0b 100644 --- a/node/app.js +++ b/node/app.js @@ -668,12 +668,12 @@ this.websocketListen = function (ports, host, handler, key, cert) { if (port.secure === true) { hs = https.createServer({key: fs.readFileSync(__dirname + '/' + key), cert: fs.readFileSync(__dirname + '/' + cert)}, handler); kiwi.io.push(ws.listen(hs, {secure: true})); - hs.listen(port.number); + hs.listen(port.number, host); console.log("Listening on %s:%d with SSL", host, port.number); } else { hs = http.createServer(handler); kiwi.io.push(ws.listen(hs, {secure: false})); - hs.listen(port.number); + hs.listen(port.number, host); console.log("Listening on %s:%d without SSL", host, port.number); } }); -- 2.25.1