1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2026-04-22 12:32:22 +08:00

Compare commits

...

7 Commits

Author SHA1 Message Date
云声 954400049c Merge 9b4ef9d439 into 79cc32b013 2024-11-01 12:42:36 +08:00
2024 79cc32b013 1 2024-11-01 11:59:55 +08:00
云声 9b4ef9d439 多个大括号 2024-11-01 08:22:10 +08:00
2024 a868dadeab 1 2024-11-01 07:35:53 +08:00
2024 cc814b2817 1 2024-11-01 00:45:03 +08:00
2024 95298ba5e8 1 2024-10-31 17:44:15 +08:00
云声 b78a2abe1e 全局代理池增加排除列表
使用NO_PROXY环境变量排除全局代理池列表
2024-10-30 09:35:57 +08:00
5 changed files with 19 additions and 2 deletions
+3
View File
@@ -78,6 +78,9 @@ 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;
if (process.env.NO_PROXY) {
global.GLOBAL_AGENT.NO_PROXY = process.env.NO_PROXY;
}
console.log(`\n---------------使用代理池模式---------------\n`); console.log(`\n---------------使用代理池模式---------------\n`);
} catch { } catch {
throw new Error(`请安装global-agent依赖,才能启用代理!`); throw new Error(`请安装global-agent依赖,才能启用代理!`);
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long