From b88fef203bfe527482d02c4d948831b070908f47 Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Thu, 26 Nov 2020 18:19:13 +0100 Subject: [PATCH] Add info log line in case of no external IP (#313) --- eth/p2p/discoveryv5/protocol.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/p2p/discoveryv5/protocol.nim b/eth/p2p/discoveryv5/protocol.nim index 1be86a5..b740ba8 100644 --- a/eth/p2p/discoveryv5/protocol.nim +++ b/eth/p2p/discoveryv5/protocol.nim @@ -798,6 +798,9 @@ proc newProtocol*(privKey: PrivateKey, proc open*(d: Protocol) {.raises: [Exception, Defect].} = info "Starting discovery node", node = d.localNode, bindAddress = d.bindAddress, uri = toURI(d.localNode.record) + + if d.localNode.address.isNone(): + info "No external IP provided, this node will not be discoverable" # TODO allow binding to specific IP / IPv6 / etc let ta = initTAddress(d.bindAddress.ip, d.bindAddress.port) # TODO: raises `OSError` and `IOSelectorsException`, the latter which is