Merge pull request #570 from kkwwang/patch-1

1
This commit is contained in:
6dylan6
2024-11-04 23:40:25 +08:00
committed by GitHub

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依赖才能启用代理`);