mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-05 23:08:01 +00:00
try to print value of peerID for unknown client
This commit is contained in:
@@ -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