use listener address from switch
This commit is contained in:
parent
3caf04d525
commit
845150b4f4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue