Merge pull request #432 from maxpoulin64/fix-bind

Fix default configuration for `host`.
This commit is contained in:
Jérémie Astori 2016-06-24 21:09:01 -04:00 committed by GitHub
commit 9aaae7fd94
2 changed files with 4 additions and 4 deletions

View File

@ -12,12 +12,12 @@ module.exports = {
//
// IP address or hostname for the web server to listen on.
// Setting this to "0.0.0.0" will listen on all interfaces.
// Setting this to undefined will listen on all interfaces.
//
// @type string
// @default "0.0.0.0"
// @default undefined
//
host: "0.0.0.0",
host: undefined,
//
// Set the port to listen on.

View File

@ -62,7 +62,7 @@ module.exports = function(options) {
manager.sockets = sockets;
log.info("The Lounge v" + pkg.version + " is now running on", protocol + "://" + config.host + ":" + config.port + "/");
log.info("The Lounge v" + pkg.version + " is now running on", protocol + "://" + (config.host || "*") + ":" + config.port + "/");
log.info("Press ctrl-c to stop\n");
if (!config.public) {