aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discv5/udp.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-12-15 00:40:49 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-12-15 00:40:49 +0800
commit2573094df2b3f2fad03ce465694f24e9899a31e4 (patch)
tree7f3b1a83dd531944d82ccd243ef5a51cf63f6f4a /p2p/discv5/udp.go
parent745026b7b4fbbb3036a3d456a26db35fac4e3374 (diff)
downloaddexon-2573094df2b3f2fad03ce465694f24e9899a31e4.tar
dexon-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.gz
dexon-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.bz2
dexon-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.lz
dexon-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.xz
dexon-2573094df2b3f2fad03ce465694f24e9899a31e4.tar.zst
dexon-2573094df2b3f2fad03ce465694f24e9899a31e4.zip
p2p/discover, p2p/discv5: use flexible comparison for IPs
Diffstat (limited to 'p2p/discv5/udp.go')
-rw-r--r--p2p/discv5/udp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/discv5/udp.go b/p2p/discv5/udp.go
index a6114e032..b43f6d198 100644
--- a/p2p/discv5/udp.go
+++ b/p2p/discv5/udp.go
@@ -196,7 +196,7 @@ func makeEndpoint(addr *net.UDPAddr, tcpPort uint16) rpcEndpoint {
}
func (e1 rpcEndpoint) equal(e2 rpcEndpoint) bool {
- return e1.UDP == e2.UDP && e1.TCP == e2.TCP && bytes.Equal(e1.IP, e2.IP)
+ return e1.UDP == e2.UDP && e1.TCP == e2.TCP && e1.IP.Equal(e2.IP)
}
func nodeFromRPC(sender *net.UDPAddr, rn rpcNode) (*Node, error) {