Bug fixes

This commit is contained in:
Thoronium
2023-02-26 01:44:01 -07:00
committed by GitHub
parent 85a16e3407
commit f2e3c69c0f
3 changed files with 9 additions and 3 deletions

View File

@@ -40,5 +40,11 @@ export async function encryptionEnabled(path: string) {
return false
}
// Also check if null just in case
if (serverConf == null) {
console.log(`Server config at ${path} not found or invalid. Be sure to run the server at least once to generate it`)
return false
}
return serverConf.server.http.encryption.useEncryption
}