mirror of https://github.com/6dylan6/jdpro.git
Update jdCookie.js
This commit is contained in:
parent
9b4ef9d439
commit
34184d4e81
|
@ -78,9 +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;
|
||||||
if (process.env.NO_PROXY) {
|
global.GLOBAL_AGENT.NO_PROXY = '127.0.0.1,localhost';
|
||||||
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依赖,才能启用代理!`);
|
||||||
|
|
Loading…
Reference in New Issue