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

View File

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