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 Jul 19, 2024
1 parent eba5cbb commit d56b612
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 UDP hole punching
if (isHolepunched())
updateFlags(u'h', tr("Peer was found by using a NAT hole punch"));

m_flags.chop(1);
m_flagsDescription.chop(1);
}
Expand Down

0 comments on commit d56b612

Please sign in to comment.