Skip to content

Commit

Permalink
chore(server): Listen on all interfaces
Browse files Browse the repository at this point in the history
Listen on 0.0.0.0 instead of localhost to allow
access from other machines on the network.
  • Loading branch information
dirkhe1051931999 committed Dec 12, 2024
1 parent 28afdba commit 0366403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ try {
}

// 启动服务器
app.server = app.listen(CONFIG.port, () => {
app.server = app.listen(CONFIG.port, '0.0.0.0', () => {
console.log(`server running @ http://localhost:${CONFIG.port}`);
});

Expand Down

0 comments on commit 0366403

Please sign in to comment.