Skip to content
Snippets Groups Projects
Commit 78d98822 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

securedht: use default max expiration for putEncrypted

parent 8c04ddc6
No related branches found
No related tags found
No related merge requests found
......@@ -338,7 +338,7 @@ SecureDht::putEncrypted(const InfoHash& hash, const InfoHash& to, std::shared_pt
}
DHT_LOG.WARN("Encrypting data for PK: %s", pk->getId().toString().c_str());
try {
put(hash, encrypt(*val, *pk), callback, {}, permanent);
put(hash, encrypt(*val, *pk), callback, time_point::max(), permanent);
} catch (const std::exception& e) {
DHT_LOG.ERR("Error putting encrypted data: %s", e.what());
if (callback)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment