From 3a488a3dcb51ef10221fcec01bcb14b70691138f Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 1 Oct 2026 13:51:29 -0400 Subject: [PATCH] recognize more clients by peerID --- libi2pd_client/TorrentsRPC.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libi2pd_client/TorrentsRPC.cpp b/libi2pd_client/TorrentsRPC.cpp index 3ac27027..7b2a41e5 100644 --- a/libi2pd_client/TorrentsRPC.cpp +++ b/libi2pd_client/TorrentsRPC.cpp @@ -9,7 +9,7 @@ #ifndef NO_TORRENTS #include -#if !defined(ANDROID) && (BOOST_VERSION >= 108100) // boost::json since 1.75, we allow it since 1.81 due to std::string_view compatibility +#if !defined(ANDROID) && (BOOST_VERSION >= 108100) // boost::json since 1.75, boost::url since 1.81 #include #include #include @@ -600,7 +600,11 @@ namespace torrents { "BI", "BiglyBT" }, { "AZ", "Vuze" }, { "LT", "libtorrent" }, - { "IO", "insulaocculta" } + { "IO", "insulaocculta" }, + { "KT", "KTorrent" }, + { "ET", "EepTorrent" }, + { "TR", "Transmission" }, + { "DE", "Deluge" } }; if (peerID.size () >= i2psnark.size () && !memcmp (peerID.data (), i2psnark.data (), i2psnark.size ())) @@ -615,6 +619,8 @@ namespace torrents if (it != twoChars.end ()) return it->second; } + else if (peerIDStr.substr (0, 3) == "TIX") + return "Tixati"; return "Unknown"; }