fix: fix missing host in onebot http-server listen

This commit is contained in:
Lan Zongwei
2025-06-04 23:50:16 +08:00
committed by 手瓜一十雪
parent c522e0a386
commit a29debb738

View File

@@ -87,7 +87,7 @@ export class OB11HttpServerAdapter extends IOB11NetworkAdapter<HttpServerConfig>
this.app.use(async (req, res) => {
await this.handleRequest(req, res);
});
this.server.listen(this.config.port, () => {
this.server.listen(this.config.port, this.config.host, () => {
this.core.context.logger.log(`[OneBot] [HTTP Server Adapter] Start On Port ${this.config.port}`);
});
}