mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
look for LeaseSet in local database
This commit is contained in:
parent
02256be720
commit
47589125e0
@ -79,7 +79,8 @@ namespace api
|
|||||||
|
|
||||||
std::shared_ptr<i2p::stream::Stream> CreateStream (i2p::client::ClientDestination * dest, const i2p::data::IdentHash& remote)
|
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)
|
if (leaseSet)
|
||||||
{
|
{
|
||||||
auto stream = dest->CreateStream (*leaseSet);
|
auto stream = dest->CreateStream (*leaseSet);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user