修复EnkaApi代理

来自QQ用户 1035380945
This commit is contained in:
admilk 2024-05-04 11:19:41 +08:00 committed by GitHub
parent 66b26d58b2
commit a9c0114bd0
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) => { HttpsProxyAgent = await import('https-proxy-agent').catch((err) => {
logger.error(err) logger.error(err)
}) })
HttpsProxyAgent = HttpsProxyAgent ? HttpsProxyAgent.HttpsProxyAgent : undefined HttpsProxyAgent = HttpsProxyAgent ? HttpsProxyAgent.default : undefined
} }
if (HttpsProxyAgent) { if (HttpsProxyAgent) {
params.agent = new HttpsProxyAgent(proxy) params.agent = new HttpsProxyAgent(proxy)