diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-27 16:11:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-27 16:11:02 +0100 |
commit | a63fed5090e182256c2f8d14597c195b9f4f6a48 (patch) | |
tree | 1976c86db2e65bb433cfa3558cf15833281b0077 /src/libstat/tokenizers | |
parent | aad1e3622aeea65651a7c58ce78a75603506b9c8 (diff) | |
download | rspamd-a63fed5090e182256c2f8d14597c195b9f4f6a48.tar.gz rspamd-a63fed5090e182256c2f8d14597c195b9f4f6a48.zip |
Some more fixes to tokenizator init.
Diffstat (limited to 'src/libstat/tokenizers')
-rw-r--r-- | src/libstat/tokenizers/osb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstat/tokenizers/osb.c b/src/libstat/tokenizers/osb.c index bbb2656c2..4ba141e4f 100644 --- a/src/libstat/tokenizers/osb.c +++ b/src/libstat/tokenizers/osb.c @@ -140,6 +140,12 @@ rspamd_tokenizer_osb_config_from_ucl (rspamd_mempool_t * pool, } } + else { + elt = ucl_object_find_key (obj, "compat"); + if (elt != NULL && ucl_object_toboolean (elt)) { + cf->ht = RSPAMD_OSB_HASH_COMPAT; + } + } elt = ucl_object_find_key (obj, "window"); if (elt != NULL && ucl_object_type (elt) == UCL_INT) { |