mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: fix missing host in onebot http-server listen
This commit is contained in:
@@ -87,7 +87,7 @@ export class OB11HttpServerAdapter extends IOB11NetworkAdapter<HttpServerConfig>
|
|||||||
this.app.use(async (req, res) => {
|
this.app.use(async (req, res) => {
|
||||||
await this.handleRequest(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}`);
|
this.core.context.logger.log(`[OneBot] [HTTP Server Adapter] Start On Port ${this.config.port}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user