Change ECHO rate-limit divsor from 16 to 20

This commit is contained in:
Joseph Henry 2022-02-21 16:22:33 -08:00
parent 5e13b42abc
commit d1335dca11
No known key found for this signature in database
GPG Key ID: C45B33FF5EBC9344

View File

@ -273,7 +273,7 @@ public:
*/ */
inline bool rateGateEchoRequest(const int64_t now) inline bool rateGateEchoRequest(const int64_t now)
{ {
if ((now - _lastEchoRequestReceived) >= (ZT_PEER_GENERAL_RATE_LIMIT / 16)) { if ((now - _lastEchoRequestReceived) >= (ZT_PEER_GENERAL_RATE_LIMIT / 20)) {
_lastEchoRequestReceived = now; _lastEchoRequestReceived = now;
return true; return true;
} }