From 1811e4ed5540836d338839ad66a53a056b4ac298 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 23 Sep 2024 22:56:58 +0200 Subject: [PATCH] process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0 --- lib/fediblock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fediblock.js b/lib/fediblock.js index 9c9d456..9fe7e31 100644 --- a/lib/fediblock.js +++ b/lib/fediblock.js @@ -18,6 +18,7 @@ module.exports = async (client, apex, app) => { } }, requestPart = async uri => { + process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0 const ac = new AbortController() try { setTimeout(() => { @@ -26,7 +27,6 @@ module.exports = async (client, apex, app) => { const response = await fetch(uri, { headers: { 'User-Agent': constant.agent }, agent: new https.Agent({ - rejectUnauthorized: false, keepAlive: false }), signal: ac.signal,