Skip to content

Commit

Permalink
test: remove pong bond verify
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr committed Jan 10, 2024
1 parent a985316 commit b9c67d0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions p2p/discover/v4_udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,9 @@ func (t *UDPv4) verifyFindnode(h *packetHandlerV4, from *net.UDPAddr, fromID eno
if v4wire.Expired(req.Expiration) {
return errExpired
}
/**
if !t.checkBond(fromID, from.IP) {
// No endpoint proof poudpng exists, we don't process the packet. This prevents an
// attack vector where the discovery protocol could be used to amplify traffic in a
Expand All @@ -723,6 +726,7 @@ func (t *UDPv4) verifyFindnode(h *packetHandlerV4, from *net.UDPAddr, fromID eno
// findnode) to the victim.
return errUnknownNode
}
*/
return nil
}

Expand Down Expand Up @@ -778,9 +782,12 @@ func (t *UDPv4) verifyENRRequest(h *packetHandlerV4, from *net.UDPAddr, fromID e
if v4wire.Expired(req.Expiration) {
return errExpired
}
if !t.checkBond(fromID, from.IP) {
return errUnknownNode
}
/*
if !t.checkBond(fromID, from.IP) {
return errUnknownNode
}
*/
return nil
}

Expand Down

0 comments on commit b9c67d0

Please sign in to comment.