mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dht/node: don't allow more than 3 auth errors
This commit is contained in:
3 files changed
+23
-3
No files matched your search
@@ -377,6 +377,9 @@ NetworkEngine::processMessage(const uint8_t *buf, size_t buflen, const SockAddr&
|
||||
break;
|
||||
}
|
||||
case MessageType::Reply:
|
||||
if (msg.type == MessageType::AnnounceValue or msg.type == MessageType::Listen)
|
||||
req->node->authSuccess();
|
||||
|
||||
// erase before calling callback to make sure iterator is still valid
|
||||
if (not req->persistent)
|
||||
requests.erase(reqp);
|
||||
|
||||
Reference in new issue
Block a user