add primordial goo tier "hidden mode" (aka toy feature needs more work doesn't do it correctly all the way)

This commit is contained in:
Jeff Becker 2016-06-18 11:10:58 -04:00
parent 004a93a841
commit 93deb37c94
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
5 changed files with 27 additions and 4 deletions

View file

@ -333,6 +333,7 @@ namespace tunnel
int numHops = isInbound ? m_NumInboundHops : m_NumOutboundHops;
if(i2p::transport::transports.RoutesRestricted())
{
/** if routes are restricted prepend trusted first hop */
auto hop = i2p::transport::transports.GetRestrictedPeer();
if(!hop) return false;
peers.push_back(hop->GetRouterIdentity());