select tunnel from TunnelPool rather than from LeaseSet for DeliveryStatus

This commit is contained in:
orignal 2015-04-05 12:54:15 -04:00
parent 62593f60c5
commit 10577cd1e5
5 changed files with 14 additions and 7 deletions

View file

@ -289,6 +289,11 @@ namespace i2p
fk.write ((char *)&keys, sizeof (keys));
}
std::shared_ptr<i2p::tunnel::TunnelPool> RouterContext::GetTunnelPool () const
{
return i2p::tunnel::tunnels.GetExploratoryPool ();
}
void RouterContext::HandleI2NPMessage (const uint8_t * buf, size_t len, std::shared_ptr<i2p::tunnel::InboundTunnel> from)
{
i2p::HandleI2NPMessage (CreateI2NPMessage (buf, GetI2NPMessageLength (buf), from));