From e2b3f0dadb7576c738c86d4f96e65c9599db7436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Tue, 5 Nov 2019 23:56:10 +0100 Subject: [PATCH] announcedAddresses: fix logic error --- beacon_chain/eth2_network.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/eth2_network.nim b/beacon_chain/eth2_network.nim index 1c9e84003..ba7b26973 100644 --- a/beacon_chain/eth2_network.nim +++ b/beacon_chain/eth2_network.nim @@ -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