From: Yu Watanabe Date: Thu, 6 Jul 2023 02:48:43 +0000 (+0900) Subject: networkctl: urlify captive portal entry X-Git-Tag: v254-rc1~16^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F28265%2Fhead;p=thirdparty%2Fsystemd.git networkctl: urlify captive portal entry --- 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;