mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
keep own RouterInfo in netdb
This commit is contained in:
parent
2c129b6d39
commit
41bfc7899d
4 changed files with 34 additions and 6 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue