]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkctl: urlify captive portal entry 28265/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Jul 2023 02:48:43 +0000 (11:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Jul 2023 05:55:58 +0000 (14:55 +0900)
src/network/networkctl.c

index ec60c5e6b8c40b33e57abd97425049ea01c628ee..ffbda5dc0e22de9f56d288e1240ce5491897f6e0 100644 (file)
@@ -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;