diff --git a/node/Constants.hpp b/node/Constants.hpp index 760a8ad2f..ca23a7e5f 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -523,7 +523,7 @@ /** * Maximum number of VERB_NETWORK_CREDENTIALS within cutoff time */ -#define ZT_PEER_CREDEITIALS_CUTOFF_LIMIT 15 +#define ZT_PEER_CREDENTIALS_CUTOFF_LIMIT 15 /** * WHOIS rate limit (we allow these to be pretty fast) diff --git a/node/Peer.hpp b/node/Peer.hpp index fd3a9a589..2368e9318 100644 --- a/node/Peer.hpp +++ b/node/Peer.hpp @@ -391,7 +391,7 @@ public: ++_credentialsCutoffCount; else _credentialsCutoffCount = 0; _lastCredentialsReceived = now; - return (_credentialsCutoffCount < ZT_PEER_CREDEITIALS_CUTOFF_LIMIT); + return (_credentialsCutoffCount < ZT_PEER_CREDENTIALS_CUTOFF_LIMIT); } /**