use listener address from switch

This commit is contained in:
munna0908 2024-12-19 13:23:29 +05:30 committed by Marcin Czenko
parent 16c96bd8c0
commit 0eddb6cf61
No known key found for this signature in database
GPG Key ID: 33DEA0C8E30937C0
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)