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,