use published encrypted instead orig type

This commit is contained in:
orignal 2019-08-07 16:18:00 -04:00
parent e6a09b49c9
commit 3872c2a3f5
3 changed files with 4 additions and 6 deletions

View file

@ -918,7 +918,7 @@ namespace stream
{
expired = false;
// time to request
if (m_RemoteLeaseSet->GetOrigStoreType () == i2p::data::NETDB_STORE_TYPE_ENCRYPTED_LEASESET2)
if (m_RemoteLeaseSet->IsPublishedEncrypted ())
m_LocalDestination.GetOwner ()->RequestDestinationWithEncryptedLeaseSet (
std::make_shared<i2p::data::BlindedPublicKey>(m_RemoteIdentity));
else