kopia lustrzana https://github.com/c9/core
fix auth check breaking build script
rodzic
55ee409c76
commit
3b280a079a
|
@ -90,9 +90,10 @@ module.exports = function(config, optimist) {
|
||||||
require("child_process").exec("tmux -L cloud91.9 kill-server", function(){});
|
require("child_process").exec("tmux -L cloud91.9 kill-server", function(){});
|
||||||
|
|
||||||
var isLocalhost = host == "localhost" || host == "127.0.0.1";
|
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.");
|
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(":");
|
var auth = (argv.auth || ":").split(":");
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue