Browse Source

Change ECHO divisor from 20 to 6

Joseph Henry 3 năm trước cách đây
mục cha
commit
1918c29fd7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      node/Path.hpp

+ 1 - 1
node/Path.hpp

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