Browse Source

Merge pull request #1552 from Shawn8410/master

FIX: fix wrong flag usage of rateGateCredentialsReceived
Joseph Henry 3 years ago
parent
commit
2f554fd6f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      node/Peer.hpp

+ 1 - 1
node/Peer.hpp

@@ -391,7 +391,7 @@ public:
 			++_credentialsCutoffCount;
 			++_credentialsCutoffCount;
 		else _credentialsCutoffCount = 0;
 		else _credentialsCutoffCount = 0;
 		_lastCredentialsReceived = now;
 		_lastCredentialsReceived = now;
-		return (_directPathPushCutoffCount < ZT_PEER_CREDEITIALS_CUTOFF_LIMIT);
+		return (_credentialsCutoffCount < ZT_PEER_CREDEITIALS_CUTOFF_LIMIT);
 	}
 	}
 
 
 	/**
 	/**