use listener address from switch
This commit is contained in:
parent
16c96bd8c0
commit
0eddb6cf61
|
@ -161,7 +161,7 @@ proc start*(s: CodexServer) {.async.} =
|
||||||
|
|
||||||
let (announceAddrs,discoveryAddrs)= natedAddress(
|
let (announceAddrs,discoveryAddrs)= natedAddress(
|
||||||
s.config.nat,
|
s.config.nat,
|
||||||
s.config.listenAddrs,
|
s.codexNode.switch.peerInfo.addrs,
|
||||||
s.config.discoveryPort)
|
s.config.discoveryPort)
|
||||||
|
|
||||||
s.codexNode.discovery.updateAnnounceRecord(announceAddrs)
|
s.codexNode.discovery.updateAnnounceRecord(announceAddrs)
|
||||||
|
|
Loading…
Reference in New Issue