This commit is contained in:
2024 2024-11-05 10:59:57 +08:00
parent 394a36fafd
commit d88ae6d26c
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ if (process.env.DP_POOL) {
try { try {
require("global-agent/bootstrap"); require("global-agent/bootstrap");
global.GLOBAL_AGENT.HTTP_PROXY = process.env.DP_POOL; 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`); console.log(`\n---------------使用代理池模式---------------\n`);
} catch { } catch {
throw new Error(`请安装global-agent依赖才能启用代理`); throw new Error(`请安装global-agent依赖才能启用代理`);