Merge pull request #738 from Admilkk/patch-1

EnkaApi.js的代理配置写错了,应该是HttpsProxyAgent.default
This commit is contained in:
Aluxes 2024-05-04 12:03:27 +08:00 committed by GitHub
commit 1cc93eb35b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ export default {
HttpsProxyAgent = await import('https-proxy-agent').catch((err) => {
logger.error(err)
})
HttpsProxyAgent = HttpsProxyAgent ? HttpsProxyAgent.HttpsProxyAgent : undefined
HttpsProxyAgent = HttpsProxyAgent ? HttpsProxyAgent.default : undefined
}
if (HttpsProxyAgent) {
params.agent = new HttpsProxyAgent(proxy)