From 34184d4e818eee22f31752b82d360fc3cf80aff7 Mon Sep 17 00:00:00 2001 From: 6dylan6 <86815944+6dylan6@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:39:10 +0800 Subject: [PATCH] Update jdCookie.js --- jdCookie.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jdCookie.js b/jdCookie.js index 33857db..cbebeea 100644 --- a/jdCookie.js +++ b/jdCookie.js @@ -78,9 +78,7 @@ if (process.env.DP_POOL) { try { require("global-agent/bootstrap"); global.GLOBAL_AGENT.HTTP_PROXY = process.env.DP_POOL; - if (process.env.NO_PROXY) { - global.GLOBAL_AGENT.NO_PROXY = process.env.NO_PROXY; - } + global.GLOBAL_AGENT.NO_PROXY = '127.0.0.1,localhost'; console.log(`\n---------------使用代理池模式---------------\n`); } catch { throw new Error(`请安装global-agent依赖,才能启用代理!`);