From d88ae6d26ce2c63374ba6256bcf5585a78a81e8e Mon Sep 17 00:00:00 2001 From: 2024 Date: Tue, 5 Nov 2024 10:59:57 +0800 Subject: [PATCH] 1 --- jdCookie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdCookie.js b/jdCookie.js index cbebeea..6f46c62 100644 --- a/jdCookie.js +++ b/jdCookie.js @@ -78,7 +78,7 @@ if (process.env.DP_POOL) { try { require("global-agent/bootstrap"); global.GLOBAL_AGENT.HTTP_PROXY = process.env.DP_POOL; - global.GLOBAL_AGENT.NO_PROXY = '127.0.0.1,localhost'; + global.GLOBAL_AGENT.NO_PROXY = process.env.NO_PROXY || '127.0.0.1,localhost'; console.log(`\n---------------使用代理池模式---------------\n`); } catch { throw new Error(`请安装global-agent依赖,才能启用代理!`);