mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-22 20:18:19 +00:00
try to print value of peerID for unknown client
This commit is contained in:
1 parent
3a488a3dcb
commit
4c48933c17
1 file changed
+5
-1
@@ -622,7 +622,11 @@ namespace torrents
|
||||
else if (peerIDStr.substr (0, 3) == "TIX")
|
||||
return "Tixati";
|
||||
|
||||
return "Unknown";
|
||||
std::string unknown("Unknown (");
|
||||
for (auto ch: peerIDStr)
|
||||
unknown.push_back (std::isprint ((uint8_t)ch) ? ch : '?');
|
||||
unknown.push_back (')');
|
||||
return unknown;
|
||||
}
|
||||
|
||||
std::string JSONRPCHandler::HandleTorrentStop (boost::json::object&& jsonRequest)
|
||||
|
||||
Reference in new issue
Block a user