mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Complete utorrent-compatible flags support.
This commit is contained in:
@@ -496,10 +496,14 @@ QString PeerListWidget::getFlags(const peer_info& peer)
|
|||||||
if (peer.source & peer_info::dht)
|
if (peer.source & peer_info::dht)
|
||||||
flags += "H ";
|
flags += "H ";
|
||||||
|
|
||||||
//E = Peer is using Protocol Encryption (cannot distinguish between handshake and all traffic)
|
//E = Peer is using Protocol Encryption (all traffic)
|
||||||
if (peer.flags & peer_info::rc4_encrypted)
|
if (peer.flags & peer_info::rc4_encrypted)
|
||||||
flags += "E ";
|
flags += "E ";
|
||||||
|
|
||||||
|
//e = Peer is using Protocol Encryption (handshake)
|
||||||
|
if (peer.flags & peer_info::plaintext_encrypted)
|
||||||
|
flags += "e ";
|
||||||
|
|
||||||
#if LIBTORRENT_VERSION_NUM > 001500
|
#if LIBTORRENT_VERSION_NUM > 001500
|
||||||
//P = Peer is using uTorrent uTP
|
//P = Peer is using uTorrent uTP
|
||||||
if (peer.connection_type & peer_info::bittorrent_utp)
|
if (peer.connection_type & peer_info::bittorrent_utp)
|
||||||
|
|||||||
Reference in New Issue
Block a user