1
0
Fork 0
forked from svrjs/svrjs

Fix 500 Internal Server Error related to HTTP authentication

This commit is contained in:
Dorian Niemiec 2024-08-26 07:57:07 +02:00
parent 60b0ea6933
commit 914b38e0b0

View file

@ -8,6 +8,15 @@ const cluster = require("../utils/clusterBunShim.js");
const svrjsInfo = require("../../svrjs.json");
const { name } = svrjsInfo;
let crypto = {
__disabled__: null,
};
try {
crypto = require("crypto");
} catch (err) {
// Crypto is disabled
}
// Brute force protection-related
let bruteForceDb = {};