mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: ws 0.0.0. 兼容
This commit is contained in:
parent
2f7aff2b56
commit
5e19fc112a
@ -34,7 +34,10 @@ export class OB11PassiveWebSocketAdapter implements IOB11NetworkAdapter {
|
|||||||
) {
|
) {
|
||||||
this.core = core;
|
this.core = core;
|
||||||
this.logger = core.context.logger;
|
this.logger = core.context.logger;
|
||||||
|
if (ip === '0.0.0.0') {
|
||||||
|
//兼容配置同时处理0.0.0.0逻辑
|
||||||
|
ip = '';
|
||||||
|
}
|
||||||
this.heartbeatInterval = heartbeatInterval;
|
this.heartbeatInterval = heartbeatInterval;
|
||||||
this.wsServer = new WebSocketServer({
|
this.wsServer = new WebSocketServer({
|
||||||
port: port,
|
port: port,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user