mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 15:33:12 +09:00
Improve config field definition type
This commit is contained in:
3 files changed
+26
-10
No files matched your search
@@ -387,7 +387,7 @@ async function initialize(): Promise<InitializeParameters> {
|
||||
|
||||
controllerConfig.set("controller.version", version); // Allows tracking last loaded version
|
||||
|
||||
if (!controllerConfig.get("controller.auth_secret")) {
|
||||
if (controllerConfig.get("controller.auth_secret") === "") {
|
||||
logger.info("Generating new controller authentication secret");
|
||||
let asyncRandomBytes = util.promisify(crypto.randomBytes);
|
||||
let bytes = await asyncRandomBytes(256);
|
||||
|
||||
Reference in new issue
Block a user