1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

All: Fixes #6688: Fix resources sync when proxy is set (#6817)

This commit is contained in:
Self Not Found
2022-09-05 17:42:22 +08:00
committed by GitHub
parent e40d733176
commit eb7083d788

View File

@@ -493,7 +493,7 @@ function shimInit(options = null) {
};
const resolvedProxyUrl = resolveProxyUrl(proxySettings.proxyUrl);
requestOptions.agent = (resolvedProxyUrl && proxySettings.proxyEnabled) ? shim.proxyAgent(url, resolvedProxyUrl) : null;
requestOptions.agent = (resolvedProxyUrl && proxySettings.proxyEnabled) ? shim.proxyAgent(url.href, resolvedProxyUrl) : null;
const doFetchOperation = async () => {
return new Promise((resolve, reject) => {