From 53ba3e175f19c0de4126b5df16c15773408f267e Mon Sep 17 00:00:00 2001 From: binaryify Date: Sat, 4 Sep 2021 15:03:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=90=86=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=97=AE=E9=A2=98=20#1343?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- util/request.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 27279e1..e990eaf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.0.20", + "version": "4.0.21", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", diff --git a/util/request.js b/util/request.js index 9211aff..bcb245a 100644 --- a/util/request.js +++ b/util/request.js @@ -142,6 +142,8 @@ const createRequest = (method, url, data, options) => { console.error('代理配置无效,不使用代理') } } + } else { + settings.proxy = false } if (options.crypto === 'eapi') { settings = { -- GitLab