From f1c46510bd43356e4f73cc2ce9dd352a784805eb Mon Sep 17 00:00:00 2001 From: Kokomi <592981798@qq.com> Date: Thu, 4 Aug 2022 12:25:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E5=9B=9E=E6=BB=9Aenka?= =?UTF-8?q?=E7=9A=84proxy=E8=83=BD=E5=8A=9B=EF=BC=8C=E5=90=8E=E7=BB=AD?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=8C=89=E9=9C=80=E5=BC=95=E5=85=A5=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/profile-data/enka.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/profile-data/enka.js b/components/profile-data/enka.js index 70ed0274..f4d1af6c 100644 --- a/components/profile-data/enka.js +++ b/components/profile-data/enka.js @@ -1,6 +1,6 @@ import fetch from 'node-fetch' import EnkaData from './enka-data.js' -import HttpsProxyAgent from "https-proxy-agent"; +//import HttpsProxyAgent from "https-proxy-agent"; let Enka = { key: 'enka', cd: 5, @@ -13,7 +13,7 @@ let Enka = { } let config = { headers: { 'User-Agent': diyCfg?.enkaApi?.userAgent || sysCfg.enkaApi.userAgent } } if (diyCfg?.enkaApi?.proxyAgent){ - config.agent=new HttpsProxyAgent(diyCfg.enkaApi.proxyAgent) + // config.agent=new HttpsProxyAgent(diyCfg.enkaApi.proxyAgent) } let req = await fetch(api, config) let data = await req.json()