From cfa4db6b097375fc86cbd663f5621062eb13f1df Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 30 May 2024 16:21:05 +0200 Subject: [PATCH] p2p/discover: revert change in removeIP --- p2p/discover/table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/discover/table.go b/p2p/discover/table.go index 0e08efe14a..bb5ab4f3fc 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -494,7 +494,7 @@ func (tab *Table) addIP(b *bucket, ip netip.Addr) bool { } func (tab *Table) removeIP(b *bucket, ip netip.Addr) { - if !ip.IsValid() || ip.IsUnspecified() || netutil.AddrIsLAN(ip) { + if netutil.AddrIsLAN(ip) { return } tab.ips.RemoveAddr(ip)