From 40230a02c0630be311fb27aa68cd5e441801e67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 2 Dec 2023 12:55:46 +0100 Subject: Accept extended identity from device attachment --- src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b39130a..0eb379b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -417,8 +417,12 @@ void watchLocalIdentity(const vector &) if (idt) { ostringstream ss; ss << "local-identity"; - for (optional i = idt; i; i = i->owner()) - ss << " " << i->name().value(); + for (optional i = idt; i; i = i->owner()) { + if (auto name = i->name()) + ss << " " << i->name().value(); + else + ss << " "; + } printLine(ss.str()); } }); -- cgit v1.2.3