1
0
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-07-03 13:29:23 +00:00

Compare commits

..

2 Commits
v1.0.4 ... main

Author SHA1 Message Date
SunWuyuan
f1dba22f75
1.0.5 2025-05-25 15:45:29 +08:00
SunWuyuan
6cfa20fe76
Update server listening address to '0.0.0.0' for external access; modify console log to reflect new address format. 2025-05-25 15:45:10 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ var server = createServer(app);
* Listen on provided port, on all network interfaces.
*/
server.listen(port);
server.listen(port, '0.0.0.0');
server.on('error', onError);
server.on('listening', onListening);
@ -82,5 +82,5 @@ function onError(error) {
function onListening() {
var addr = server.address();
console.log("可以在 http://localhost:"+addr.port+" 访问");
console.log(`Server running at http://0.0.0.0:${addr.port}`);
}

View File

@ -1,6 +1,6 @@
{
"name": "ClassworksKV",
"version": "1.0.4",
"version": "1.0.5",
"private": true,
"scripts": {
"start": "node ./bin/www",