fix: ws 0.0.0. 兼容
This commit is contained in:
1 parent
2f7aff2b56
commit
5e19fc112a
1 file changed
+4
-1
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user