From 52ee8ecf07e956402ce782e563155fee52f5e8c4 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 6 Jul 2023 11:48:43 +0900 Subject: [PATCH] networkctl: urlify captive portal entry --- src/network/networkctl.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/network/networkctl.c b/src/network/networkctl.c index ec60c5e6b8c..ffbda5dc0e2 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -2359,8 +2359,15 @@ static int link_status_one( return table_log_add_error(r); } - if (captive_portal) - table_add_string_line(table, "Captive Portal:", captive_portal); + if (captive_portal) { + r = table_add_many(table, + TABLE_EMPTY, + TABLE_STRING, "Captive Portal:", + TABLE_STRING, captive_portal, + TABLE_SET_URL, captive_portal); + if (r < 0) + return table_log_add_error(r); + } if (lease) { const void *client_id; -- 2.47.3