diff --git a/src/modules/network/implementation/libp2p-service.js b/src/modules/network/implementation/libp2p-service.js index b41904c5dd..4725038dce 100644 --- a/src/modules/network/implementation/libp2p-service.js +++ b/src/modules/network/implementation/libp2p-service.js @@ -75,14 +75,10 @@ class Libp2pService { * } */ this.sessions = {}; - const addresses = { - listen: [`/ip4/0.0.0.0/tcp/${this.config.port}`], - }; - if (ip.isV4Format(this.config.publicIp) && ip.isPublic(this.config.publicIp)) { - addresses.announce = [`/ip4/${this.config.publicIp}/tcp/${this.config.port}`]; - } this.node = await createLibp2p({ - addresses, + addresses: { + listen: [`/ip4/0.0.0.0/tcp/${this.config.port}`], + }, transports: [tcp()], streamMuxers: [mplex()], connectionEncryption: [noise()], @@ -175,10 +171,6 @@ class Libp2pService { this.blackList = {}; } - getConnections(peerIdObject) { - return this.node.getConnections(peerIdObject); - } - getMultiaddrs() { return this.node.getMultiaddrs(); }