fix: fix https config

This commit is contained in:
2025-06-04 15:22:57 +08:00
parent c1388118a6
commit 8cca071d9b
3 changed files with 19 additions and 2 deletions

View File

@@ -32,7 +32,8 @@ export const runServer = async (port?: number, listenPath = '127.0.0.1') => {
});
} else {
app.listen(_port, listenPath, () => {
console.log(`Server is running on https://${listenPath}:${_port}`);
const protocol = assistantConfig.getHttps().protocol;
console.log(`Server is running on ${protocol}://${listenPath}:${_port}`);
});
}
app.server.on(proxyRoute);