1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2026-04-16 03:42:48 +08:00

Compare commits

...

4 Commits

Author SHA1 Message Date
6dylan6
dfa5625315 Merge pull request #570 from kkwwang/patch-1
1
2024-11-04 23:40:25 +08:00
6dylan6
34184d4e81 Update jdCookie.js 2024-11-04 23:39:10 +08:00
云声
9b4ef9d439 多个大括号 2024-11-01 08:22:10 +08:00
云声
b78a2abe1e 全局代理池增加排除列表
使用NO_PROXY环境变量排除全局代理池列表
2024-10-30 09:35:57 +08:00

View File

@@ -78,6 +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';
console.log(`\n---------------使用代理池模式---------------\n`);
} catch {
throw new Error(`请安装global-agent依赖才能启用代理`);