EnkaApi.js的代理配置写错了,应该是HttpsProxyAgent.default

来自QQ用户 1035380945

Signed-off-by: Admilk <13205155+adrae@user.noreply.gitee.com>
This commit is contained in:
Admilk 2024-05-04 03:15:27 +00:00 committed by Gitee
parent 66b26d58b2
commit 25ddb38182
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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)