fix noproxy handling for image downloading

This commit is contained in:
zadam
2020-08-03 23:33:44 +02:00
parent 4fc8bace94
commit 782127dd91
2 changed files with 9 additions and 13 deletions

View File

@@ -84,10 +84,11 @@ function exec(opts) {
}
async function getImage(imageUrl) {
const proxyConf = await syncOptions.getSyncProxy();
const opts = {
method: 'GET',
url: imageUrl,
proxy: await syncOptions.getSyncProxy()
proxy: proxyConf !== "noproxy" ? proxyConf : null
};
const client = getClient(opts);