announcedAddresses: fix logic error

This commit is contained in:
Ștefan Talpalaru 2019-11-05 23:56:10 +01:00
parent 35da46cc3c
commit e2b3f0dadb
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 1 deletions

View File

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