mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 14:38:30 +00:00
修复EnkaApi代理
来自QQ用户 1035380945
This commit is contained in:
parent
66b26d58b2
commit
a9c0114bd0
@ -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