mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 22:48:13 +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) => {
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user