提交 53ba3e17 编写于 作者: B binaryify

修复代理设置问题 #1343

上级 0e658f9b
{ {
"name": "NeteaseCloudMusicApi", "name": "NeteaseCloudMusicApi",
"version": "4.0.20", "version": "4.0.21",
"description": "网易云音乐 NodeJS 版 API", "description": "网易云音乐 NodeJS 版 API",
"scripts": { "scripts": {
"start": "node app.js", "start": "node app.js",
......
...@@ -142,6 +142,8 @@ const createRequest = (method, url, data, options) => { ...@@ -142,6 +142,8 @@ const createRequest = (method, url, data, options) => {
console.error('代理配置无效,不使用代理') console.error('代理配置无效,不使用代理')
} }
} }
} else {
settings.proxy = false
} }
if (options.crypto === 'eapi') { if (options.crypto === 'eapi') {
settings = { settings = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册