diff --git a/app/modules/ws2p/lib/WS2PCluster.ts b/app/modules/ws2p/lib/WS2PCluster.ts index 7f015e75e9de23377915286aa495bb2cba337396..18076803fdb286942dd9d0ff89fd11bed6cadcc3 100644 --- a/app/modules/ws2p/lib/WS2PCluster.ts +++ b/app/modules/ws2p/lib/WS2PCluster.ts @@ -347,7 +347,10 @@ export class WS2PCluster { const api = p.getWS2P() if (api) { try { - await this.connectToRemoteWS(api.host, api.port, api.path, this.messageHandler, p.pubkey, api.uuid) + // We do not connect to local host + if (!this.server.conf.ws2p || api.uuid !== this.server.conf.ws2p.uuid) { + await this.connectToRemoteWS(api.host, api.port, api.path, this.messageHandler, p.pubkey, api.uuid) + } } catch (e) { this.server.logger.debug('WS2P: init: failed connection') }