From 3b280a079a189a69be87c4bfa7ff0926dff44fa3 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 20 Feb 2015 18:34:47 +0000 Subject: [PATCH] fix auth check breaking build script --- configs/standalone.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(":");