diff --git a/src/index.js b/src/index.js index 5f12786..863d6db 100644 --- a/src/index.js +++ b/src/index.js @@ -41,7 +41,7 @@ const verify = async (uri, fingerprint, opts) => { res = null - if (!spData.proof.useProxy || 'forceDirectRequest' in opts && opts.forceDirectRequest) { + if (!spData.proof.useProxy || 'useProxyWhenNeeded' in opts && !opts.useProxyWhenNeeded) { res = await req(spData.proof.fetch ? spData.proof.fetch : spData.proof.uri) switch (spData.proof.format) {