Skip to content

Commit

Permalink
Add a flag about the connection peers are using UDP hole punching
Browse files Browse the repository at this point in the history
  • Loading branch information
stalkerok committed Aug 14, 2024
1 parent eba5cbb commit f91f9eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/base/bittorrent/peerinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f91f9eb

Please sign in to comment.