fix: ws 0.0.0. 兼容
This commit is contained in:
1 parent
9ff01d3bfe
commit
45d0a7e194
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