Skip to content

Commit

Permalink
http default if no address is 0.0.0.0, not localhost, hard code local…
Browse files Browse the repository at this point in the history
…host as per readme
  • Loading branch information
sdetweil committed Dec 10, 2019
1 parent 4da6e3e commit ed61ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit ed61ac6

Please sign in to comment.