handle new UPnP return value (#728)

This commit is contained in:
tersec 2024-09-10 05:10:08 +00:00 committed by GitHub
parent f2568a64c0
commit 11eafac0f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -70,6 +70,8 @@ proc getExternalIP*(natStrategy: NatStrategy, quiet = false): Opt[IpAddress] =
canContinue = false
of IGDFound:
msg = "Internet Gateway Device found."
of IGDIpNotRoutable:
msg = "Internet Gateway Device found and is connected, but with a reserved or non-routable IP. Trying anyway."
of IGDNotConnected:
msg = "Internet Gateway Device found but it's not connected. Trying anyway."
of NotAnIGD:

View File

@ -1,6 +1,6 @@
#
# Ethereum P2P
# (c) Copyright 2018
# (c) Copyright 2018-2024
# Status Research & Development GmbH
#
# Licensed under either of
@ -10,7 +10,6 @@
{.used.}
import
std/tables,
chronos, testutils/unittests,
../../eth/p2p,
../stubloglevel,