mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
EnkaApi.js的代理配置写错了,应该是HttpsProxyAgent.default
来自QQ用户 1035380945 Signed-off-by: Admilk <13205155+adrae@user.noreply.gitee.com>
This commit is contained in:
parent
66b26d58b2
commit
25ddb38182
@ -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