mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 14:38:30 +00:00
Merge pull request #738 from Admilkk/patch-1
EnkaApi.js的代理配置写错了,应该是HttpsProxyAgent.default
This commit is contained in:
commit
1cc93eb35b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user