Fix default configuration for host.

Similarly to kiwiirc/irc-framework#55, passing `undefined` there instead of `"0.0.0.0"` allows the OS to decide and use both IPv4 and IPv6.
This commit is contained in:
Maxime Poulin 2016-06-24 06:25:51 -04:00
parent f1176f982e
commit 1b9c5d8996
No known key found for this signature in database
GPG Key ID: CB63C36252F40D4B
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) {