Skip to content

Commit

Permalink
支持ipv6访问
Browse files Browse the repository at this point in the history
  • Loading branch information
shanyan-wcx committed Oct 26, 2024
1 parent 390aebd commit 86bed81
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 51 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ app.use((req, res, next) => {
res.status(404).send("404 - 页面不存在。");
});

app.listen(port, '0.0.0.0', () => {
app.listen(port, '::', () => {
console.log(`Server is running at http://localhost:${port}`);
});
Loading

0 comments on commit 86bed81

Please sign in to comment.