use proper transport flags

This commit is contained in:
Dmitriy Ryajov 2020-05-18 13:56:11 -06:00 committed by tersec
parent a1689f2aaf
commit 0649d47df0
1 changed files with 2 additions and 1 deletions

View File

@ -940,7 +940,8 @@ proc createEth2Node*(conf: BeaconNodeConf, enrForkId: ENRForkID): Future[Eth2Nod
# are running behind a NAT).
var switch = newStandardSwitch(some keys.seckey, hostAddress,
triggerSelf = true, gossip = true,
sign = false, verifySignature = false, transportFlags = {TransportFlag.ReuseAddr})
sign = false, verifySignature = false,
transportFlags = {ServerFlags.ReuseAddr})
result = Eth2Node.init(conf, enrForkId, switch,
extIp, extTcpPort, extUdpPort,
keys.seckey.asEthKey)