Skip to content

Commit

Permalink
修复默认绑定IP被意外绑定到0.0.0.0的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Mar 26, 2023
1 parent 1fe89a4 commit 19a1642
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions publish/changeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### 其他
### 修复

- 移除多余的日志输出
- 修复默认绑定IP被意外绑定到`0.0.0.0`的问题
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function normalizePort(val: string) {
*/

const port = normalizePort(envParams.PORT ?? '9527')
const bindIP = envParams.BIND_IP ?? '0.0.0.0'
const bindIP = envParams.BIND_IP ?? '127.0.0.1'

void Promise.all([import('@/event'), import('@/server')]).then(async([{ createListEvent }, { startServer }]) => {
global.event_list = createListEvent()
Expand Down

0 comments on commit 19a1642

Please sign in to comment.