From cb21af287bb6b547b16ce127d189bb31c9e5a03f Mon Sep 17 00:00:00 2001 From: ivwv Date: Sun, 14 Apr 2024 16:04:41 +0800 Subject: [PATCH] update v2 branch with current changes --- worker_threads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker_threads.js b/worker_threads.js index 6300de2..0cc7e29 100644 --- a/worker_threads.js +++ b/worker_threads.js @@ -4,7 +4,7 @@ const { parentPort } = require("worker_threads"); const { HttpProxyAgent } = require("http-proxy-agent"); let httpsAgent = null; -if (process.env.HTTP_PROXY) { +if (process.env.HTTP_PROXY != null || process.env.HTTP_PROXY != undefined) { httpsAgent = new HttpProxyAgent(process.env.HTTP_PROXY); } const axios = require("axios");