From b63b67dca51662966878330ae201f283b275cdb0 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 30 May 2024 16:03:10 +0200 Subject: [PATCH] p2p/netutil: update test for 0.0.0.0/8 --- p2p/netutil/net_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/netutil/net_test.go b/p2p/netutil/net_test.go index 527ff63d2a..ededdcf7f1 100644 --- a/p2p/netutil/net_test.go +++ b/p2p/netutil/net_test.go @@ -80,8 +80,6 @@ func TestNilNetListContains(t *testing.T) { func TestIsLAN(t *testing.T) { checkContains(t, IsLAN, []string{ // included - "0.0.0.0", - "0.2.0.8", "127.0.0.1", "10.0.1.1", "10.22.0.3", @@ -103,6 +101,8 @@ func TestIsLAN(t *testing.T) { func TestIsSpecialNetwork(t *testing.T) { checkContains(t, IsSpecialNetwork, []string{ // included + "0.0.0.0", + "0.2.0.8", "192.0.2.1", "192.0.2.44", "2001:db8:85a3:8d3:1319:8a2e:370:7348",