diff --git a/configs/standalone.js b/configs/standalone.js index a46c8fc6..0b736075 100644 --- a/configs/standalone.js +++ b/configs/standalone.js @@ -90,9 +90,10 @@ module.exports = function(config, optimist) { require("child_process").exec("tmux -L cloud91.9 kill-server", function(){}); var isLocalhost = host == "localhost" || host == "127.0.0.1"; - if ((!argv.auth || !argv.auth.match(":")) && !isLocalhost) { + if (!/:/.test(argv.auth) && !isLocalhost) { console.log("Authentication is required when not running on localhost.\nPlease use -a user:pass or --listen localhost to listen locally."); - process.exit(255); + console.log("switching to localhost"); + host == "127.0.0.1"; } var auth = (argv.auth || ":").split(":");