diff --git a/changelog b/changelog index 05fa7722..fa4bf958 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,7 @@ +Fri Sep 6 16:29 2013 CDT + * lib/config.js: Add an io-host option to allow binding socket.io to + a different IP than the webserver + Fri Sep 6 15:51 2013 CDT * lib/utilities.js: Tweak the throttle code for rate limiters to fix incorrect behavior of the burst cap after the cooldown period has diff --git a/lib/config.js b/lib/config.js index 4d21e58c..a8f15850 100644 --- a/lib/config.js +++ b/lib/config.js @@ -19,6 +19,7 @@ var defaults = { "mysql-user" : "cytube", "mysql-pw" : "supersecretpass", "express-host" : "0.0.0.0", + "io-host" : "0.0.0.0", "asset-cache-ttl" : 0, "web-port" : 8080, "io-port" : 1337, diff --git a/lib/server.js b/lib/server.js index bbf26563..b2f068d9 100644 --- a/lib/server.js +++ b/lib/server.js @@ -171,7 +171,7 @@ var Server = { self.httpserv = self.app.listen(Server.cfg["web-port"], Server.cfg["express-host"]); self.ioserv = express().listen(Server.cfg["io-port"], - Server.cfg["express-host"]); + Server.cfg["io-host"]); // init socket.io self.io = require("socket.io").listen(self.ioserv);