SockAddr: fix broken call to rateLimit

This commit is contained in:
Adrien Béraud committed 2016-10-11 15:30:50 -04:00
1 parent 9e2ac99fc2
commit 8fa5735745
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
}