mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
optimize: log
This commit is contained in:
@@ -42,9 +42,9 @@ export class NapCatOnebot11 {
|
||||
logDebug('ob11 ready');
|
||||
ob11Config.read();
|
||||
const serviceInfo = `
|
||||
HTTP服务 ${ob11Config.enableHttp ? '已启动' : '未启动'}, 端口: ${ob11Config.httpPort}
|
||||
HTTP服务 ${ob11Config.enableHttp ? '已启动' : '未启动'}, ${ob11Config.httpHost}:${ob11Config.httpPort}
|
||||
HTTP上报服务 ${ob11Config.enableHttpPost ? '已启动' : '未启动'}, 上报地址: ${ob11Config.httpPostUrls}
|
||||
WebSocket服务 ${ob11Config.enableWs ? '已启动' : '未启动'}, 端口: ${ob11Config.wsPort}
|
||||
WebSocket服务 ${ob11Config.enableWs ? '已启动' : '未启动'}, ${ob11Config.wsHost}:${ob11Config.wsPort}
|
||||
WebSocket反向服务 ${ob11Config.enableWsReverse ? '已启动' : '未启动'}, 反向地址: ${ob11Config.wsReverseUrls}
|
||||
`;
|
||||
log(serviceInfo);
|
||||
|
||||
@@ -15,9 +15,9 @@ class OB11HTTPServer extends HttpServerBase {
|
||||
res.send(OB11Response.error(e.stack.toString(), 200));
|
||||
}
|
||||
|
||||
protected listen(port: number) {
|
||||
protected listen(port: number, host: string) {
|
||||
if (ob11Config.enableHttp) {
|
||||
super.listen(port);
|
||||
super.listen(port, host);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user