From 63689cf76312303c4323dc1ec16e662444b83b76 Mon Sep 17 00:00:00 2001 From: stalkerok <63958081+stalkerok@users.noreply.github.com> Date: Thu, 15 Aug 2024 20:27:19 +0300 Subject: [PATCH] Add a flag about the connection peers are using NAT hole punching PR #21052. --- src/base/bittorrent/peerinfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/base/bittorrent/peerinfo.cpp b/src/base/bittorrent/peerinfo.cpp index cf27ba302..3706b1e81 100644 --- a/src/base/bittorrent/peerinfo.cpp +++ b/src/base/bittorrent/peerinfo.cpp @@ -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); }