From 9f1fe7fc8e79e62627f7bad181929a539a6435e2 Mon Sep 17 00:00:00 2001 From: Mohammad Kermani Date: Mon, 6 May 2024 15:17:33 +0000 Subject: [PATCH] fix(rosenet-node): add relayed addresses to the list of listen addresses --- packages/rosenet-node/lib/createRoseNetNode.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/rosenet-node/lib/createRoseNetNode.ts b/packages/rosenet-node/lib/createRoseNetNode.ts index 005aaeb..83e7b6a 100644 --- a/packages/rosenet-node/lib/createRoseNetNode.ts +++ b/packages/rosenet-node/lib/createRoseNetNode.ts @@ -69,8 +69,18 @@ const createRoseNetNode = async ({ tcp(), ], addresses: { - listen: [`/ip4/0.0.0.0/tcp/${port}`], - announce: [announceMultiaddr], + listen: [ + `/ip4/0.0.0.0/tcp/${port}`, + ...config.relayMultiaddrs.map( + (multiaddr) => `${multiaddr}/p2p-circuit`, + ), + ], + announce: [ + announceMultiaddr, + ...config.relayMultiaddrs.map( + (multiaddr) => `${multiaddr}/p2p-circuit`, + ), + ], }, connectionEncryption: [noise()], connectionGater: {