From 0eddb6cf6130eb2f86ebef8dc024c2c2030c4a64 Mon Sep 17 00:00:00 2001 From: munna0908 Date: Thu, 19 Dec 2024 13:23:29 +0530 Subject: [PATCH] use listener address from switch --- codex/codex.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex/codex.nim b/codex/codex.nim index a3e1ef99..f5ab684f 100644 --- a/codex/codex.nim +++ b/codex/codex.nim @@ -161,7 +161,7 @@ proc start*(s: CodexServer) {.async.} = let (announceAddrs,discoveryAddrs)= natedAddress( s.config.nat, - s.config.listenAddrs, + s.codexNode.switch.peerInfo.addrs, s.config.discoveryPort) s.codexNode.discovery.updateAnnounceRecord(announceAddrs)