Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 641a72b

Browse files
committed
1 parent 8bde785 commit 641a72b

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.MD

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# 更新日志
2+
### 3.24.1 | 2019.10.25
3+
- 修改默认绑定 HOST [#615](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/615)
4+
25
### 3.24.0 | 2019.10.22
36
- 新增`类别热门电台` 接口 [#607](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/607)
47

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fs.readdirSync(path.join(__dirname, 'module')).reverse().forEach(file => {
8383
})
8484

8585
const port = process.env.PORT || 3000
86-
const host = process.env.HOST || 'localhost'
86+
const host = process.env.HOST || '127.0.0.1'
8787

8888
app.server = app.listen(port, host, () => {
8989
console.log(`server running @ http://${host}:${port}`)

docs/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ windows 下使用 git-bash 或者 cmder 等终端执行以下命令 :
181181
$ set PORT=4000 && node app.js
182182
```
183183

184+
服务器启动绑定 127.0.0.1,如果需要更改, 可使用以下命令 : Mac/Linux
185+
```shell
186+
$ HOST=localhost node app.js
187+
```
188+
windows 下使用 git-bash 或者 cmder 等终端执行以下命令 :
189+
190+
```shell
191+
$ set HOST=localhost && node app.js
192+
```
184193
## 可以使用代理
185194

186195
在 query 参数中加上 proxy=your-proxy 即可让这一次的请求使用 proxy

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "NeteaseCloudMusicApi",
3-
"version": "3.24.0",
3+
"version": "3.24.1",
44
"description": "网易云音乐 NodeJS 版 API",
55
"scripts": {
66
"start": "node app.js",

0 commit comments

Comments
 (0)