announcedAddresses: fix logic error
This commit is contained in:
parent
35da46cc3c
commit
e2b3f0dadb
|
@ -199,7 +199,7 @@ else:
|
|||
var
|
||||
(extIp, extTcpPort, extUdpPort) = setupNat(conf)
|
||||
hostAddress = tcpEndPoint(globalListeningAddr, Port conf.tcpPort)
|
||||
announcedAddresses = if extIp != globalListeningAddr: @[]
|
||||
announcedAddresses = if extIp == globalListeningAddr: @[]
|
||||
else: @[tcpEndPoint(extIp, extTcpPort)]
|
||||
keyFile = conf.ensureNetworkIdFile
|
||||
|
||||
|
|
Loading…
Reference in New Issue