use any router for second hop of tunnel

This commit is contained in:
orignal 2014-01-24 20:53:15 -05:00
parent 9e91be671d
commit bd8ea0bac0
2 changed files with 9 additions and 7 deletions

View file

@ -395,16 +395,15 @@ namespace tunnel
}
else
{
//OutboundTunnel * outboundTunnel = GetNextOutboundTunnel ();
LogPrint ("Creating two hops outbound tunnel...");
CreateTunnel<OutboundTunnel> (
new TunnelConfig (std::vector<const i2p::data::RouterInfo *>
{
i2p::data::netdb.GetRandomNTCPRouter (),
i2p::data::netdb.GetRandomNTCPRouter ()
i2p::data::netdb.GetRandomNTCPRouter (), // first hop must be NTCP
i2p::data::netdb.GetRandomRouter ()
},
inboundTunnel->GetTunnelConfig ())/*,
outboundTunnel*/);
inboundTunnel->GetTunnelConfig ()));
}
}
}