renew LeaseSet's I2NP message ID and timestamp before sending

This commit is contained in:
orignal 2014-03-20 12:48:03 -04:00
parent eeacc3e0f3
commit ac48e3b355
3 changed files with 19 additions and 7 deletions

View file

@ -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;
}