From 11eafac0f086510f3d2fbd54573b4a1521bfbbf5 Mon Sep 17 00:00:00 2001 From: tersec Date: Tue, 10 Sep 2024 05:10:08 +0000 Subject: [PATCH] handle new UPnP return value (#728) --- eth/net/nat.nim | 2 ++ tests/p2p/test_protocol_handlers.nim | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/eth/net/nat.nim b/eth/net/nat.nim index 10f598c..578c116 100644 --- a/eth/net/nat.nim +++ b/eth/net/nat.nim @@ -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: diff --git a/tests/p2p/test_protocol_handlers.nim b/tests/p2p/test_protocol_handlers.nim index 2c29ae3..bf98685 100644 --- a/tests/p2p/test_protocol_handlers.nim +++ b/tests/p2p/test_protocol_handlers.nim @@ -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,