From fb5500ba944473bd21edcf273d4ec0229d2a0bdf Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 7 Sep 2026 08:32:33 -0400 Subject: [PATCH] respond with all torrents info if can't recognize ids param --- libi2pd_client/TorrentsRPC.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libi2pd_client/TorrentsRPC.cpp b/libi2pd_client/TorrentsRPC.cpp index 36c5ab8b..2cbe3b0b 100644 --- a/libi2pd_client/TorrentsRPC.cpp +++ b/libi2pd_client/TorrentsRPC.cpp @@ -229,8 +229,10 @@ namespace torrents if (ids.is_array ()) for (const auto& it: ids.as_array ()) torrentIds.push_back (it.as_int64 ()); - else + else if (ids.is_int64 ()) torrentIds.push_back (ids.as_int64 ()); + else + torrentIds = m_Tunnel->GetTorrentIDs (); } else torrentIds = m_Tunnel->GetTorrentIDs ();