diff --git a/models/serv/api/EnkaApi.js b/models/serv/api/EnkaApi.js index b46ad848..52f37b4e 100644 --- a/models/serv/api/EnkaApi.js +++ b/models/serv/api/EnkaApi.js @@ -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)