clarify comment

This commit is contained in:
Ștefan Talpalaru 2019-04-18 01:17:06 +02:00
parent 4934a4cff3
commit aa29e25c3a
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 3 additions and 3 deletions

View File

@ -69,9 +69,9 @@ proc start(): NimbusObject =
else:
# automated NAT traversal
let extIP = getExternalIP(conf.net.nat)
# TODO: dynamic IPs are common, so our external IP might change while the
# program is running. How can we update our advertised enode address and any
# other place that might use this external IP?
# This external IP only appears in the logs, so don't worry about dynamic
# IPs. Don't remove it either, because the above call does initialisation
# and discovery for NAT-related objects.
if extIP.isSome:
address.ip = extIP.get()
let extPorts = redirectPorts(tcpPort = address.tcpPort,