diff --git a/jdCookie.js b/jdCookie.js index 96e3460..b4d2450 100644 --- a/jdCookie.js +++ b/jdCookie.js @@ -78,6 +78,9 @@ 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; + }} console.log(`\n---------------使用代理池模式---------------\n`); } catch { throw new Error(`请安装global-agent依赖,才能启用代理!`);