diff --git a/src/middleware/nonStandardCodesAndHttpAuthentication.js b/src/middleware/nonStandardCodesAndHttpAuthentication.js index 280fb6c..c3a7724 100644 --- a/src/middleware/nonStandardCodesAndHttpAuthentication.js +++ b/src/middleware/nonStandardCodesAndHttpAuthentication.js @@ -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 = {};