forked from svrjs/svrjs
Fix 500 Internal Server Error related to HTTP authentication
This commit is contained in:
parent
60b0ea6933
commit
914b38e0b0
1 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,15 @@ const cluster = require("../utils/clusterBunShim.js");
|
||||||
const svrjsInfo = require("../../svrjs.json");
|
const svrjsInfo = require("../../svrjs.json");
|
||||||
const { name } = svrjsInfo;
|
const { name } = svrjsInfo;
|
||||||
|
|
||||||
|
let crypto = {
|
||||||
|
__disabled__: null,
|
||||||
|
};
|
||||||
|
try {
|
||||||
|
crypto = require("crypto");
|
||||||
|
} catch (err) {
|
||||||
|
// Crypto is disabled
|
||||||
|
}
|
||||||
|
|
||||||
// Brute force protection-related
|
// Brute force protection-related
|
||||||
let bruteForceDb = {};
|
let bruteForceDb = {};
|
||||||
|
|
||||||
|
|
Reference in a new issue