mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
infohash: make string constructor explicit
This commit is contained in:
1 parent
ae1f33ac2d
commit
5920b2bac3
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -242,7 +242,7 @@ main(int argc, char **argv)
|
||||
std::string tostr;
|
||||
std::string v;
|
||||
iss >> tostr >> v;
|
||||
dht.putEncrypted(id, tostr, dht::Value {
|
||||
dht.putEncrypted(id, InfoHash(tostr), dht::Value {
|
||||
dht::ValueType::USER_DATA.id,
|
||||
std::vector<uint8_t> {v.begin(), v.end()}
|
||||
}, [](bool ok) {
|
||||
|
||||
Reference in new issue
Block a user