From 63236db9c71457afcdb1cd841e4013ef5f7a6fa5 Mon Sep 17 00:00:00 2001 From: wipedlifepotato <60944239+wipedlifepotato@users.noreply.github.com> Date: Fri, 21 Aug 2026 16:20:06 +0300 Subject: [PATCH] =?UTF-8?q?add:=20=D0=B7=D0=B0=D0=B3=D0=BB=D1=83=D1=88?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B4=D0=BB=D1=8F=20transmission-rpc=20=D0=B1?= =?UTF-8?q?=D0=B8=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5=D0=BA=D0=B8=20python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libi2pd_client/TorrentsRPC.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libi2pd_client/TorrentsRPC.cpp b/libi2pd_client/TorrentsRPC.cpp index 0e354b53..c3a3d28b 100644 --- a/libi2pd_client/TorrentsRPC.cpp +++ b/libi2pd_client/TorrentsRPC.cpp @@ -143,10 +143,12 @@ namespace torrents std::string JSONRPCHandler::HandleSessionGet (boost::json::object&& jsonRequest) { - //todo // заглушка + //todo // заглушка. наебываем систему тут, переделать потом на норм boost::json::object response, arguments; response["result"] = "success"; - arguments["version"] = "4.0.0"; + response["version"] = "4.0.0"; + response["rpc-version"] = 17; + arguments["version"] = "4.0.0"; // не нужно наверно response["arguments"] = arguments; response["tag"] = 0; return SuccessResponse (GetTag (jsonRequest), std::move (response)); @@ -444,8 +446,10 @@ namespace torrents else SendResponse (boost::beast::http::status::no_content); } - else + else { + LogPrint(eLogDebug, "TorrentRPC ", path, " not found ", tunnel); SendResponse (boost::beast::http::status::not_found); + } } else SendResponse (boost::beast::http::status::method_not_allowed);