bypassProxyはproxyBypassHostsに判断を委譲するように
This commit is contained in:
parent
f14150c69d
commit
50b98a92a8
|
@ -122,10 +122,12 @@ id: 'aid'
|
||||||
# Proxy for HTTP/HTTPS
|
# Proxy for HTTP/HTTPS
|
||||||
#proxy: http://127.0.0.1:3128
|
#proxy: http://127.0.0.1:3128
|
||||||
|
|
||||||
#proxyBypassHosts: [
|
proxyBypassHosts:
|
||||||
# 'example.com',
|
- api.deepl.com
|
||||||
# '192.0.2.8'
|
- api-free.deepl.com
|
||||||
#]
|
- www.recaptcha.net
|
||||||
|
- hcaptcha.com
|
||||||
|
- challenges.cloudflare.com
|
||||||
|
|
||||||
# Proxy for SMTP/SMTPS
|
# Proxy for SMTP/SMTPS
|
||||||
#proxySmtp: http://127.0.0.1:3128 # use HTTP/1.1 CONNECT
|
#proxySmtp: http://127.0.0.1:3128 # use HTTP/1.1 CONNECT
|
||||||
|
|
|
@ -38,7 +38,6 @@ export class CaptchaService {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
noOkError: true,
|
noOkError: true,
|
||||||
bypassProxy: true,
|
|
||||||
}
|
}
|
||||||
).catch(err => {
|
).catch(err => {
|
||||||
throw `${err.message ?? err}`;
|
throw `${err.message ?? err}`;
|
||||||
|
|
|
@ -190,7 +190,7 @@ export class FetchInstanceMetadataService {
|
||||||
|
|
||||||
const faviconUrl = url + '/favicon.ico';
|
const faviconUrl = url + '/favicon.ico';
|
||||||
|
|
||||||
const favicon = await this.httpRequestService.fetch(faviconUrl, {}, { noOkError: true, bypassProxy: false });
|
const favicon = await this.httpRequestService.fetch(faviconUrl, {}, { noOkError: true });
|
||||||
|
|
||||||
if (favicon.ok) {
|
if (favicon.ok) {
|
||||||
return faviconUrl;
|
return faviconUrl;
|
||||||
|
|
|
@ -126,7 +126,6 @@ class LdSignature {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
noOkError: true,
|
noOkError: true,
|
||||||
bypassProxy: false,
|
|
||||||
}
|
}
|
||||||
).then(res => {
|
).then(res => {
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
|
|
|
@ -96,7 +96,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
noOkError: false,
|
noOkError: false,
|
||||||
bypassProxy: true,
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue