1
0
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-07-03 05:19:22 +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. * Listen on provided port, on all network interfaces.
*/ */
server.listen(port); server.listen(port, '0.0.0.0');
server.on('error', onError); server.on('error', onError);
server.on('listening', onListening); server.on('listening', onListening);
@ -82,5 +82,5 @@ function onError(error) {
function onListening() { function onListening() {
var addr = server.address(); 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", "name": "ClassworksKV",
"version": "1.0.4", "version": "1.0.5",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "node ./bin/www", "start": "node ./bin/www",