Rate gate ECHO per Path instead of per Peer

This commit is contained in:
Joseph Henry
2022-02-21 14:37:39 -08:00
parent 1b0c183913
commit 5e13b42abc
4 changed files with 18 additions and 15 deletions

View File

@ -860,7 +860,7 @@ bool IncomingPacket::_doEXT_FRAME(const RuntimeEnvironment *RR,void *tPtr,const
bool IncomingPacket::_doECHO(const RuntimeEnvironment *RR,void *tPtr,const SharedPtr<Peer> &peer)
{
uint64_t now = RR->node->now();
if (!peer->rateGateEchoRequest(now)) {
if (!_path->rateGateEchoRequest(now)) {
return true;
}