mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Add a flag about the connection peers are using NAT hole punching
PR #21052.
This commit is contained in:
parent
c5b7c82344
commit
0da383e7b6
1 changed files with 4 additions and 0 deletions
|
@ -367,6 +367,10 @@ void PeerInfo::determineFlags()
|
||||||
if (useUTPSocket())
|
if (useUTPSocket())
|
||||||
updateFlags(u'P', C_UTP);
|
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_flags.chop(1);
|
||||||
m_flagsDescription.chop(1);
|
m_flagsDescription.chop(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue