cleanup exluded routers list for LeaseSets
This commit is contained in:
@@ -42,6 +42,11 @@ namespace data
|
||||
return msg;
|
||||
}
|
||||
|
||||
void RequestedDestination::ClearExcludedPeers ()
|
||||
{
|
||||
m_ExcludedPeers.clear ();
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
const char NetDb::m_NetDbPath[] = "/netDb";
|
||||
#else
|
||||
@@ -353,6 +358,7 @@ namespace data
|
||||
}
|
||||
if (msgs.size () > 0)
|
||||
{
|
||||
dest->ClearExcludedPeers ();
|
||||
dest->SetLastOutboundTunnel (outbound);
|
||||
outbound->SendTunnelDataMsg (msgs);
|
||||
}
|
||||
|
1
NetDb.h
1
NetDb.h
@@ -30,6 +30,7 @@ namespace data
|
||||
const IdentHash& GetDestination () const { return m_Destination; };
|
||||
int GetNumExcludedPeers () const { return m_ExcludedPeers.size (); };
|
||||
const std::set<IdentHash>& GetExcludedPeers () { return m_ExcludedPeers; };
|
||||
void ClearExcludedPeers ();
|
||||
const RouterInfo * GetLastRouter () const { return m_LastRouter; };
|
||||
const i2p::tunnel::InboundTunnel * GetLastReplyTunnel () const { return m_LastReplyTunnel; };
|
||||
bool IsExploratory () const { return m_IsExploratory; };
|
||||
|
Reference in New Issue
Block a user