Skip to content
Snippets Groups Projects
Commit 65e88f2f authored by Sébastien Blin's avatar Sébastien Blin
Browse files

build: toInfoHash->to

parent 4430b1e6
No related branches found
No related tags found
No related merge requests found
...@@ -322,7 +322,7 @@ DhtProxyServer::putEncrypted(const std::shared_ptr<restbed::Session>& session) c ...@@ -322,7 +322,7 @@ DhtProxyServer::putEncrypted(const std::shared_ptr<restbed::Session>& session) c
std::string strJson(buf.begin(), buf.end()); std::string strJson(buf.begin(), buf.end());
bool parsingSuccessful = reader.parse(strJson.c_str(), root); bool parsingSuccessful = reader.parse(strJson.c_str(), root);
InfoHash to(root["to"].asString()); InfoHash to(root["to"].asString());
if (parsingSuccessful && toInfoHash) { if (parsingSuccessful && to) {
auto value = std::make_shared<Value>(root); auto value = std::make_shared<Value>(root);
Json::FastWriter writer; Json::FastWriter writer;
dht_->putEncrypted(key, to, value); dht_->putEncrypted(key, to, value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment