]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 461132e031d1f52bcf6e09d2e213d931712de38d..82c3d7855452af7dbae47f9ec83ceda95975a4bd 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);