mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/discover: revert change in removeIP
This commit is contained in:
parent
f0a653fced
commit
cfa4db6b09
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue