|
|
|
@ -333,9 +333,10 @@ namespace tunnel
@@ -333,9 +333,10 @@ namespace tunnel
|
|
|
|
|
return tunnel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
std::shared_ptr<TunnelPool> Tunnels::CreateTunnelPool (i2p::garlic::GarlicDestination * localDestination, int numInboundHops, int numOutboundHops, int numInboundTunnels, int numOutboundTunnels) |
|
|
|
|
std::shared_ptr<TunnelPool> Tunnels::CreateTunnelPool (int numInboundHops, |
|
|
|
|
int numOutboundHops, int numInboundTunnels, int numOutboundTunnels) |
|
|
|
|
{ |
|
|
|
|
auto pool = std::make_shared<TunnelPool> (localDestination, numInboundHops, numOutboundHops, numInboundTunnels, numOutboundTunnels); |
|
|
|
|
auto pool = std::make_shared<TunnelPool> (numInboundHops, numOutboundHops, numInboundTunnels, numOutboundTunnels); |
|
|
|
|
std::unique_lock<std::mutex> l(m_PoolsMutex); |
|
|
|
|
m_Pools.push_back (pool); |
|
|
|
|
return pool; |
|
|
|
@ -649,7 +650,10 @@ namespace tunnel
@@ -649,7 +650,10 @@ namespace tunnel
|
|
|
|
|
LogPrint ("Creating zero hops inbound tunnel..."); |
|
|
|
|
CreateZeroHopsInboundTunnel (); |
|
|
|
|
if (!m_ExploratoryPool) |
|
|
|
|
m_ExploratoryPool = CreateTunnelPool (&i2p::context, 2, 2, 5, 5); // 2-hop exploratory, 5 tunnels
|
|
|
|
|
{ |
|
|
|
|
m_ExploratoryPool = CreateTunnelPool (2, 2, 5, 5); // 2-hop exploratory, 5 tunnels
|
|
|
|
|
m_ExploratoryPool->SetLocalDestination (i2p::context.GetSharedDestination ()); |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|