|
|
@ -200,11 +200,11 @@ namespace llarp
|
|
|
|
AsyncLokiPing()
|
|
|
|
AsyncLokiPing()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LogInfo("Pinging Lokid");
|
|
|
|
LogInfo("Pinging Lokid");
|
|
|
|
nlohmann::json::number_unsigned_t major(atoi(LLARP_VERSION_MAJ));
|
|
|
|
nlohmann::json major(atoi(LLARP_VERSION_MAJ));
|
|
|
|
nlohmann::json::number_unsigned_t minor(atoi(LLARP_VERSION_MIN));
|
|
|
|
nlohmann::json minor(atoi(LLARP_VERSION_MIN));
|
|
|
|
nlohmann::json::number_unsigned_t patch(atoi(LLARP_VERSION_PATCH));
|
|
|
|
nlohmann::json patch(atoi(LLARP_VERSION_PATCH));
|
|
|
|
nlohmann::json params = {
|
|
|
|
nlohmann::json version({major, minor, patch});
|
|
|
|
{"version", nlohmann::json::array({major, minor, patch})}};
|
|
|
|
nlohmann::json params({{"version", version}});
|
|
|
|
QueueRPC("lokinet_ping", std::move(params),
|
|
|
|
QueueRPC("lokinet_ping", std::move(params),
|
|
|
|
util::memFn(&CallerImpl::NewLokinetPingConn, this));
|
|
|
|
util::memFn(&CallerImpl::NewLokinetPingConn, this));
|
|
|
|
}
|
|
|
|
}
|
|
|
|