mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-04-15 03:18:36 +08:00
Compare commits
7 Commits
fab87c8089
...
b295fa40e0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b295fa40e0 | ||
|
|
3324056d30 | ||
|
|
0cd673151e | ||
|
|
61869fb613 | ||
|
|
7fe65b33c6 | ||
|
|
d728455f4e | ||
|
|
b78a2abe1e |
@@ -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依赖,才能启用代理!`);
|
||||
|
||||
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
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
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user