mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
doesn't store leases in netdb
This commit is contained in:
parent
76096747b6
commit
f3b277aeef
6 changed files with 47 additions and 30 deletions
|
@ -793,7 +793,7 @@ namespace util
|
|||
}
|
||||
|
||||
auto leaseSet = i2p::client::context.GetSharedLocalDestination ()->FindLeaseSet (destination);
|
||||
if (leaseSet && leaseSet->HasNonExpiredLeases ())
|
||||
if (leaseSet && !leaseSet->IsExpired ())
|
||||
SendToDestination (leaseSet, port, buf, len);
|
||||
else
|
||||
{
|
||||
|
@ -812,7 +812,7 @@ namespace util
|
|||
if (ecode != boost::asio::error::operation_aborted)
|
||||
{
|
||||
auto leaseSet = i2p::client::context.GetSharedLocalDestination ()->FindLeaseSet (destination);
|
||||
if (leaseSet && leaseSet->HasNonExpiredLeases ())
|
||||
if (leaseSet && !leaseSet->IsExpired ())
|
||||
SendToDestination (leaseSet, port, buf, len);
|
||||
else
|
||||
// still no LeaseSet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue