mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Add a flag about the connection peers are using NAT hole punching
PR #21052.
This commit is contained in:
committed by
Vladimir Golovnev (Glassez)
parent
cebc72d3cf
commit
63689cf763
@@ -367,6 +367,10 @@ void PeerInfo::determineFlags()
|
||||
if (useUTPSocket())
|
||||
updateFlags(u'P', C_UTP);
|
||||
|
||||
// h = Peer is using NAT hole punching
|
||||
if (isHolepunched())
|
||||
updateFlags(u'h', tr("Peer is using NAT hole punching"));
|
||||
|
||||
m_flags.chop(1);
|
||||
m_flagsDescription.chop(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user