mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-23 06:14:50 -04:00
Added check to catch strange DHT client versions.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-peernet@4303 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2372e9f3bd
commit
d5e61e042c
1 changed files with 11 additions and 0 deletions
|
@ -1716,6 +1716,17 @@ void bdNode::msgin_pong(bdId *id, bdToken *transId, bdToken *versionId)
|
|||
sameDhtVersion = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ((sameDhtVersion) && (!sameDhtEngine))
|
||||
{
|
||||
sameDhtVersion = false;
|
||||
std::cerr << "bdNode::msgin_pong() STRANGE Peer Version: ";
|
||||
for(int i = 0; i < versionId->len; i++)
|
||||
{
|
||||
std::cerr << versionId->data[i];
|
||||
}
|
||||
std::cerr << std::endl;
|
||||
}
|
||||
|
||||
/* check two bytes */
|
||||
if ((versionId->len >= 6) && (mDhtVersion.size() >= 6) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue