mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-04-23 04:44:23 +08:00
Compare commits
7 Commits
5888b34453
...
3c0d41d8c9
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c0d41d8c9 | |||
| 873b742a6d | |||
| 9a03c0c0f3 | |||
| ea646456e1 | |||
| c8fb58c2cd | |||
| 9b4ef9d439 | |||
| b78a2abe1e |
@@ -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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+10
-10
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