use listener address from switch

This commit is contained in:
munna0908 2024-12-19 13:23:29 +05:30
parent 3caf04d525
commit 845150b4f4
1 changed files with 1 additions and 1 deletions

View File

@ -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)