Skip to content

Commit 5fefe39

Browse files
fjlkaralabe
authored andcommitted
p2p/netutil: fix staticcheck warning (#20315)
1 parent dfe8912 commit 5fefe39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎p2p/netutil/net.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func sameNet(bits uint, ip, other net.IP) bool {
212212
if mask != 0 && nb < len(ip) && ip[nb]&mask != other[nb]&mask {
213213
return false
214214
}
215-
return nb <= len(ip) && bytes.Equal(ip[:nb], other[:nb])
215+
return nb <= len(ip) && ip[:nb].Equal(other[:nb])
216216
}
217217

218218
// DistinctNetSet tracks IPs, ensuring that at most N of them

0 commit comments

Comments
 (0)