diff --git a/lib/config.js b/lib/config.js index 2af23154..bb13290e 100644 --- a/lib/config.js +++ b/lib/config.js @@ -14,12 +14,12 @@ var defaults = { }, listen: [ { - ip: "", + ip: "0.0.0.0", port: 8080, http: true, }, { - ip: "", + ip: "0.0.0.0", port: 1337, io: true } @@ -169,12 +169,12 @@ function preprocessConfig(cfg) { "and change your config.yaml to the new format."); cfg.listen = [ { - ip: cfg.http.host, + ip: cfg.http.host || "0.0.0.0", port: cfg.http.port, http: true }, { - ip: cfg.http.host, + ip: cfg.http.host || "0.0.0.0", port: cfg.io.port, io: true } @@ -183,7 +183,7 @@ function preprocessConfig(cfg) { if (cfg.https.enabled) { cfg.listen.push( { - ip: cfg.http.host, + ip: cfg.http.host || "0.0.0.0", port: cfg.https.port, https: true, io: true @@ -245,6 +245,9 @@ function preprocessConfig(cfg) { cfg.io["ipv6-ssl"] = ""; for (var i = 0; i < cfg.listen.length; i++) { var srv = cfg.listen[i]; + if (!srv.ip) { + srv.ip = "0.0.0.0"; + } if (!srv.io) { continue; } diff --git a/package.json b/package.json index 2a7e2745..055d11ea 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "body-parser": "^1.10.2", "compression": "^1.3.0", "cookie-parser": "^1.3.3", - "cytubefilters": "git://github.com/calzoneman/cytubefilters#89f56fee", + "cytubefilters": "git://github.com/calzoneman/cytubefilters#33b7693c", "express": "^4.11.1", - "express-minify": "^0.1.2", + "express-minify": "^0.1.3", "graceful-fs": "^3.0.5", "jade": "^1.9.1", "json-typecheck": "^0.1.3",