diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-01-04 13:56:29 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-01-04 13:56:29 +0000 |
commit | 3f5ca5e8b061e34b713b1a2022e46c37529751db (patch) | |
tree | bcb41fb48640e2360290177ade281a9884d5e846 /src/fuzzy_storage.c | |
parent | 3099e3427614dd06081a5395b2b3edb632e2ba4a (diff) | |
download | rspamd-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.c | 3 |
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); } |