Browse Source

limit depth of exploratory sent directly

pull/46/head
orignal 11 years ago
parent
commit
759fd0815d
  1. 2
      HTTPServer.cpp
  2. 3
      NetDb.cpp

2
HTTPServer.cpp

@ -60,7 +60,7 @@ namespace util @@ -60,7 +60,7 @@ namespace util
{
m_Buffer[bytes_transferred] = 0;
auto address = ExtractAddress ();
LogPrint (address);
//LogPrint (address);
if (address.length () > 1) // not just '/'
HandleDestinationRequest (address.substr (1)); // exclude '/'
else

3
NetDb.cpp

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

Loading…
Cancel
Save