Skip to content
Snippets Groups Projects
Commit 55079e60 authored by Éloïs's avatar Éloïs
Browse files

[fix] the ws2p connection to oneself fails in a loop -> disable oneself ws2p conection

parent 6b8b5b69
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,10 @@ export class WS2PCluster {
const api = p.getWS2P()
if (api) {
try {
// 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')
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment