mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
node: use requests to determinate state
This commit is contained in:
1 parent
3282ebad2e
commit
040e3770ad
8 files changed
+353
-323
No files matched your search
+2
-2
@@ -100,8 +100,8 @@ NodeCache::NodeTree::get(const InfoHash& id, const sockaddr* sa, socklen_t sa_le
|
||||
} else if (confirm || node->time < now - Node::NODE_EXPIRE_TIME) {
|
||||
node->update(sa, sa_len);
|
||||
}
|
||||
if (confirm)
|
||||
node->received(now, confirm >= 2);
|
||||
/*if (confirm)
|
||||
node->received(now, confirm >= 2);*/
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user