mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 09:16:05 +03:00
parent
a19ef58400
commit
2c47f09d7a
1 changed files with 6 additions and 1 deletions
|
@ -198,7 +198,12 @@ QString PeerInfo::I2PAddress() const
|
||||||
|
|
||||||
QString PeerInfo::client() const
|
QString PeerInfo::client() const
|
||||||
{
|
{
|
||||||
return QString::fromStdString(m_nativeInfo.client);
|
auto client = QString::fromStdString(m_nativeInfo.client).simplified();
|
||||||
|
|
||||||
|
// remove non-printable characters
|
||||||
|
erase_if(client, [](const QChar &c) { return !c.isPrint(); });
|
||||||
|
|
||||||
|
return client;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString PeerInfo::peerIdClient() const
|
QString PeerInfo::peerIdClient() const
|
||||||
|
|
Loading…
Reference in a new issue