gui: shorten unknown NAT status to NAT?

This commit is contained in:
evgeny committed 2026-10-17 17:55:32 +02:00
1 parent 78f71ddbb0
commit b9a5981f5c
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ QVariant MemberListModel::data(const QModelIndex& index, int role) const {
QString sub;
if (it->rtt >= 0) sub += QString("rtt=%1ms").arg(it->rtt / 10);
if (it->natType >= 0) {
static const char* nat[] = {"NET","DIR","EIM","DEP","NAT type=UNKNOWN","CONTACT"};
static const char* nat[] = {"NET","DIR","EIM","DEP","NAT?","CONTACT"};
const char* nt = (it->natType <= 5) ? nat[it->natType] : "?";
if (!sub.isEmpty()) sub += " ";
sub += nt;