Skip to content

Commit

Permalink
fix(rosenet-node): add relayed addresses to the list of listen addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
mkermani144 committed May 6, 2024
1 parent c6c8a8b commit 9f1fe7f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/rosenet-node/lib/createRoseNetNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 9f1fe7f

Please sign in to comment.