p2p/discover: revert change in removeIP

This commit is contained in:
Felix Lange 2024-05-30 16:21:05 +02:00
parent f0a653fced
commit cfa4db6b09

View file

@ -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)