From 70ce69a9862de28005086778980076a14c7d7754 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Thu, 19 Feb 2015 16:16:03 +0000 Subject: [PATCH] Fix issues with npm run ctest and the using the auth param --- configs/standalone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/standalone.js b/configs/standalone.js index 5ac39ce2..a46c8fc6 100644 --- a/configs/standalone.js +++ b/configs/standalone.js @@ -90,7 +90,7 @@ 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 !== ":" && !isLocalhost) { + if ((!argv.auth || !argv.auth.match(":")) && !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); }