limit depth of exploratory sent directly

This commit is contained in:
orignal 2014-02-14 22:11:49 -05:00
parent 1545a21682
commit 759fd0815d
2 changed files with 5 additions and 2 deletions

View file

@ -494,7 +494,10 @@ namespace data
else // we should send directly
{
if (!dest->IsLeaseSet ()) // if not LeaseSet
i2p::transports.SendMessage (router, dest->CreateRequestMessage (router));
{
if (!dest->IsExcluded (router) && dest->GetNumExcludedPeers () < 30)
i2p::transports.SendMessage (router, dest->CreateRequestMessage (router));
}
else
LogPrint ("Can't request LeaseSet");
}