keep own RouterInfo in netdb

This commit is contained in:
orignal 2021-07-14 14:46:56 -04:00
parent 2c129b6d39
commit 41bfc7899d
4 changed files with 34 additions and 6 deletions

View file

@ -423,7 +423,7 @@ namespace tunnel
bool StandardSelectPeers(Path & peers, int numHops, bool inbound, SelectHopFunc nextHop)
{
int start = 0;
auto prevHop = i2p::context.GetSharedRouterInfo ();
std::shared_ptr<const i2p::data::RouterInfo> prevHop = i2p::context.GetSharedRouterInfo ();
if(i2p::transport::transports.RoutesRestricted())
{
/** if routes are restricted prepend trusted first hop */