Add a flag about the connection peers are using NAT hole punching

PR #21052.
This commit is contained in:
stalkerok 2024-08-15 20:27:19 +03:00 committed by Vladimir Golovnev (Glassez)
parent cebc72d3cf
commit 63689cf763
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -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);
} }