mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 13:57:49 +00:00
Change ECHO rate-limit divsor from 16 to 20
This commit is contained in:
parent
5e13b42abc
commit
d1335dca11
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user