dhtproxy: fix cancelListen with pushNotifications

Fill the body of the UNSUBSCRIBE method and fix dhtnode application
This commit is contained in:
Sébastien Blin committed 2018-02-26 15:25:48 -05:00
1 parent 2af70e6d50
commit 22ef53acef
3 files changed
+32 -12

No files matched your search

+3 -3
View File
@@ -274,9 +274,9 @@ void cmd_loop(std::shared_ptr<DhtRunner>& dht, dht_params& params
} catch (std::invalid_argument& e) { std::cout << e.what() << std::endl; }
}
} else if (op == "cl") {
std::string rem;
iss >> rem;
dht->cancelListen(id, std::stoul(rem));
std::string hash, rem;
iss >> hash >> rem;
dht->cancelListen(dht::InfoHash(hash), std::stoul(rem));
}
else {
// Dht syntax