From dea4b202bfe8fe4a041b24ac191a6a8bf0d2f835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Fri, 3 Jan 2020 15:10:22 -0500 Subject: [PATCH] proxy server: make json type explicit --- src/dht_proxy_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dht_proxy_server.cpp b/src/dht_proxy_server.cpp index e0251d08..f7f68d2d 100644 --- a/src/dht_proxy_server.cpp +++ b/src/dht_proxy_server.cpp @@ -705,7 +705,7 @@ DhtProxyServer::subscribe(restinio::request_handle_t request, Json::Value json; json["key"] = infoHash.toString(); json["to"] = clientId; - json["t"] = std::chrono::duration_cast(system_clock::now().time_since_epoch()).count(); + json["t"] = Json::Value::Int64(std::chrono::duration_cast(system_clock::now().time_since_epoch()).count()); { std::lock_guard l(sessionCtx->lock); json["s"] = sessionCtx->sessionId;