This commit is contained in:
2025-12-29 01:34:06 +08:00
parent ff7e6aa152
commit 91409861b9
5 changed files with 41 additions and 16 deletions

View File

@@ -36,7 +36,11 @@ export const runServer = async (port: number = 51515, listenPath = '127.0.0.1')
} else {
app.listen(_port, listenPath, () => {
const protocol = assistantConfig.getHttps().protocol;
console.log(`Server is running on ${protocol}://${listenPath}:${_port}`);
let showListenPath = listenPath;
if (listenPath === '::') {
showListenPath = 'localhost';
}
console.log(`Server is running on ${protocol}://${showListenPath}:${_port}`);
});
}
app.server.on([{