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
......@@ -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')
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment