0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 01:58:35 +02:00

modules/console: Output peer flags in listing.

This commit is contained in:
Jason Volk 2019-09-11 11:40:24 -07:00
parent f36a743471
commit fe4c7bb12e

View file

@ -4583,10 +4583,23 @@ console_cmd__peer(opt &out, const string_view &line)
const net::ipport &ipp{peer.remote};
out << setw(40) << left << host;
out << ' ';
if(ipp)
out << ' ' << setw(40) << left << ipp;
out << setw(40) << left << ipp;
else
out << ' ' << setw(40) << left << " ";
out << setw(40) << left << " ";
out << ' ';
if(peer.op_resolve)
out << 'R';
else
out << ' ';
out << ' ';
if(peer.op_fini)
out << 'F';
else
out << ' ';
out << " " << setw(2) << right << peer.link_count() << " L"
<< " " << setw(3) << right << peer.tag_count() << " T"