vici: Also return close action
authorTobias Brunner <tobias@strongswan.org>
Fri, 16 Feb 2018 08:55:22 +0000 (09:55 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 16 Feb 2018 08:55:22 +0000 (09:55 +0100)
src/libcharon/plugins/vici/vici_query.c

index 461132e..82c3d78 100644 (file)
@@ -856,7 +856,9 @@ CALLBACK(list_conns, vici_message_t*,
                        free(lft);
 
                        b->add_kv(b, "dpd_action", "%N", action_names,
-                               child_cfg->get_dpd_action(child_cfg));
+                                         child_cfg->get_dpd_action(child_cfg));
+                       b->add_kv(b, "close_action", "%N", action_names,
+                                         child_cfg->get_close_action(child_cfg));
 
                        b->begin_list(b, "local-ts");
                        list = child_cfg->get_traffic_selectors(child_cfg, TRUE, NULL, NULL);