aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-01-04 13:56:29 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-01-04 13:56:29 +0000
commit3f5ca5e8b061e34b713b1a2022e46c37529751db (patch)
treebcb41fb48640e2360290177ade281a9884d5e846 /src/fuzzy_storage.c
parent3099e3427614dd06081a5395b2b3edb632e2ba4a (diff)
downloadrspamd-3f5ca5e8b061e34b713b1a2022e46c37529751db.tar.gz
rspamd-3f5ca5e8b061e34b713b1a2022e46c37529751db.zip
[Minor] Allow to flatten keypair output
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index bea32134f..71f63adbd 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -1882,7 +1882,8 @@ rspamd_fuzzy_stat_to_ucl (struct rspamd_fuzzy_storage_ctx *ctx, gboolean ip_stat
ucl_object_insert_key (elt, ip_elt, "ips", 0, false);
}
- ucl_object_insert_key (elt, rspamd_keypair_to_ucl (fuzzy_key->key, RSPAMD_KEYPAIR_DUMP_NO_SECRET),
+ ucl_object_insert_key (elt,
+ rspamd_keypair_to_ucl (fuzzy_key->key, RSPAMD_KEYPAIR_DUMP_NO_SECRET|RSPAMD_KEYPAIR_DUMP_FLATTENED),
"keypair", 0, false);
ucl_object_insert_key (keys_obj, elt, keyname, 0, true);
}