Browse Source

look for LeaseSet in local database

pull/115/head
orignal 10 years ago
parent
commit
47589125e0
  1. 3
      api/api.cpp

3
api/api.cpp

@ -79,7 +79,8 @@ namespace api @@ -79,7 +79,8 @@ namespace api
std::shared_ptr<i2p::stream::Stream> CreateStream (i2p::client::ClientDestination * dest, const i2p::data::IdentHash& remote)
{
auto leaseSet = i2p::data::netdb.FindLeaseSet (remote);
if (!dest) return nullptr;
auto leaseSet = dest->FindLeaseSet (remote);
if (leaseSet)
{
auto stream = dest->CreateStream (*leaseSet);

Loading…
Cancel
Save