new experimental feature: shenanigans

- will allow server operates to intentionally enable bugs/exploits for fun shenanigans
This commit is contained in:
zefie
2022-12-01 09:09:03 -05:00
parent b437d99f91
commit 55cbf592ee
6 changed files with 85 additions and 16 deletions

View File

@@ -2009,6 +2009,10 @@ if (minisrv_config.config.user_accounts.max_users_per_account > 99) {
minisrv_config.config.user_accounts.max_users_per_account = 99;
}
// shenanigans
if (minisrv_config.config.shenanigans) console.log(" * WARNING: Shenanigans level", minisrv_config.config.shenanigans, "enabled");
else console.log(" * Shenanigans disabled");
process.on('uncaughtException', function (err) {
console.error((err && err.stack) ? err.stack : err);
});