removed depth obfucation of search results and replaced by 0 always, effectively removing any information about search depth (idea by AC)

This commit is contained in:
csoler 2016-04-10 20:39:08 -04:00
parent 0d5b9ae0d1
commit c97f197b7e

View File

@ -1017,8 +1017,6 @@ void p3turtle::handleSearchResult(RsTurtleSearchResultItem *item)
// Is this result's target actually ours ?
++(item->depth) ; // increase depth
if(it->second.origin == _own_id)
returnSearchResult(item) ; // Yes, so send upward.
else
@ -1032,7 +1030,7 @@ void p3turtle::handleSearchResult(RsTurtleSearchResultItem *item)
// of the files found can be further reached by a tunnel.
fwd_item->PeerId(it->second.origin) ;
fwd_item->depth = 2 + (rand() % 256) ; // obfuscate the depth for non immediate friends.
fwd_item->depth = 0 ; // obfuscate the depth for non immediate friends. Result will always be 0. This effectively removes the information.
sendItem(fwd_item) ;
}