http default if no address is 0.0.0.0, not localhost, hard code localhost as per readme

This commit is contained in:
Sam Detweiler 2019-12-10 12:15:30 -06:00
parent 4da6e3ecee
commit ed61ac624d

View file

@ -24,7 +24,7 @@ var Server = function(config, callback) {
console.log("Starting server on port " + port + " ... ");
server.listen(port, config.address ? config.address : null);
server.listen(port, config.address ? config.address : "localhost");
if (config.ipWhitelist instanceof Array && config.ipWhitelist.length === 0) {
console.info(Utils.colors.warn("You're using a full whitelist configuration to allow for all IPs"));