Browse Source

allow encryption type param for encrypted LeaseSet

pull/1517/head
orignal 5 years ago
parent
commit
a96c205830
  1. 3
      libi2pd/Destination.cpp

3
libi2pd/Destination.cpp

@ -845,7 +845,8 @@ namespace client @@ -845,7 +845,8 @@ namespace client
// extract encryption type params for LS2
std::set<i2p::data::CryptoKeyType> encryptionKeyTypes;
if (GetLeaseSetType () == i2p::data::NETDB_STORE_TYPE_STANDARD_LEASESET2 && params)
if ((GetLeaseSetType () == i2p::data::NETDB_STORE_TYPE_STANDARD_LEASESET2 ||
GetLeaseSetType () == i2p::data::NETDB_STORE_TYPE_ENCRYPTED_LEASESET2) && params)
{
auto it = params->find (I2CP_PARAM_LEASESET_ENCRYPTION_TYPE);
if (it != params->end ())

Loading…
Cancel
Save