mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
SockAddr: fix broken call to rateLimit
This commit is contained in:
1 parent
9e2ac99fc2
commit
8fa5735745
2 files changed
+2
-2
No files matched your search
@@ -374,7 +374,7 @@ private:
|
||||
/* TODO */
|
||||
static const std::string my_v;
|
||||
|
||||
bool rateLimit(const SockAddr& addr);
|
||||
bool rateLimit();
|
||||
|
||||
static bool isMartian(const SockAddr& addr);
|
||||
bool isNodeBlacklisted(const SockAddr& addr) const;
|
||||
|
||||
@@ -295,7 +295,7 @@ NetworkEngine::processMessage(const uint8_t *buf, size_t buflen, const SockAddr&
|
||||
|
||||
if (msg.type > MessageType::Reply) {
|
||||
/* Rate limit requests. */
|
||||
if (!rateLimit(from)) {
|
||||
if (!rateLimit()) {
|
||||
DHT_LOG.WARN("Dropping request due to rate limiting.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user