|
|
@ -199,8 +199,9 @@ namespace tunnel |
|
|
|
|
|
|
|
|
|
|
|
void TunnelPool::CreateInboundTunnel () |
|
|
|
void TunnelPool::CreateInboundTunnel () |
|
|
|
{ |
|
|
|
{ |
|
|
|
OutboundTunnel * outboundTunnel = m_OutboundTunnels.size () > 0 ? |
|
|
|
OutboundTunnel * outboundTunnel = GetNextOutboundTunnel (); |
|
|
|
*m_OutboundTunnels.begin () : tunnels.GetNextOutboundTunnel (); |
|
|
|
if (!outboundTunnel) |
|
|
|
|
|
|
|
outboundTunnel = tunnels.GetNextOutboundTunnel (); |
|
|
|
LogPrint ("Creating destination inbound tunnel..."); |
|
|
|
LogPrint ("Creating destination inbound tunnel..."); |
|
|
|
const i2p::data::RouterInfo * prevHop = &i2p::context.GetRouterInfo (); |
|
|
|
const i2p::data::RouterInfo * prevHop = &i2p::context.GetRouterInfo (); |
|
|
|
std::vector<const i2p::data::RouterInfo *> hops; |
|
|
|
std::vector<const i2p::data::RouterInfo *> hops; |
|
|
@ -239,8 +240,9 @@ namespace tunnel |
|
|
|
|
|
|
|
|
|
|
|
void TunnelPool::CreateOutboundTunnel () |
|
|
|
void TunnelPool::CreateOutboundTunnel () |
|
|
|
{ |
|
|
|
{ |
|
|
|
InboundTunnel * inboundTunnel = m_InboundTunnels.size () > 0 ? |
|
|
|
InboundTunnel * inboundTunnel = GetNextInboundTunnel (); |
|
|
|
*m_InboundTunnels.begin () : tunnels.GetNextInboundTunnel (); |
|
|
|
if (!inboundTunnel) |
|
|
|
|
|
|
|
inboundTunnel = tunnels.GetNextInboundTunnel (); |
|
|
|
if (inboundTunnel) |
|
|
|
if (inboundTunnel) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint ("Creating destination outbound tunnel..."); |
|
|
|
LogPrint ("Creating destination outbound tunnel..."); |
|
|
|