mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Exit if masterAuthToken is missing
Exit client.js with a non-zero exit code if it's detected that the masterAuthToken is missing in the config.
This commit is contained in:
1 parent
6e26d32fed
commit
8b4ec58459
1 file changed
+2
@@ -53,6 +53,8 @@ if(!config.masterAuthToken || typeof config.masterAuthToken !== "string"){
|
||||
console.error("Master server now needs an access token for write operations. As clusterio slaves depends \
|
||||
upon this, please add your token to config.json in the field named masterAuthToken. \
|
||||
You can retrieve your auth token from the master in secret-api-token.txt after running it once.");
|
||||
process.exitCode = 1;
|
||||
return;
|
||||
}
|
||||
const needleOptionsWithTokenAuthHeader = {
|
||||
compressed:true,
|
||||
|
||||
Reference in new issue
Block a user