Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.7.9 #266

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Add proxy
  • Loading branch information
quidl committed Aug 5, 2024
commit 1fe29ec9e73440458aab885f957b12e961cbf800
2 changes: 2 additions & 0 deletions src/core/api/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ const agent = new https.Agent({

function getProxy(url) {
const { proxy, proxyExcludedUrls } = config;
console.log('QQQQQ proxy:', proxy, proxyExcludedUrls);
if (!proxy) {
return false;
}
const isExcluded = proxyExcludedUrls.some((excludedUrl) => wildcard(excludedUrl, url));
if (isExcluded) {
logger.debug('QQQQQ proxy excluded:', proxyExcludedUrls, url);
return false;
}
try {
Expand Down
Loading