Merge pull request +6280 from c9/fix/ctest-auth

Fix issues with npm run ctest and the using the auth param
pull/39/head
Lennart Kats 2015-02-20 11:53:56 +01:00
commit 3aa4209a85
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
}