mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix auth check breaking build script
This commit is contained in:
parent
55ee409c76
commit
3b280a079a
@ -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(":");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user