mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
renew LeaseSet's I2NP message ID and timestamp before sending
This commit is contained in:
parent
eeacc3e0f3
commit
ac48e3b355
3 changed files with 19 additions and 7 deletions
|
@ -369,10 +369,10 @@ namespace stream
|
|||
|
||||
const I2NPMessage * StreamingDestination::GetLeaseSet ()
|
||||
{
|
||||
// TODO: LeaseSet is always re-created. ivestigate
|
||||
if (m_LeaseSet)
|
||||
DeleteI2NPMessage (m_LeaseSet);
|
||||
m_LeaseSet = CreateLeaseSet ();
|
||||
if (!m_LeaseSet)
|
||||
m_LeaseSet = CreateLeaseSet ();
|
||||
else
|
||||
RenewI2NPMessageHeader (m_LeaseSet);
|
||||
return m_LeaseSet;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue