diff --git a/HTTPServer.cpp b/HTTPServer.cpp index 3589c0df..0ae7a3dc 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -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 diff --git a/NetDb.cpp b/NetDb.cpp index 0ebafb66..9dd78204 100644 --- a/NetDb.cpp +++ b/NetDb.cpp @@ -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"); }