diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-18 14:26:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-18 14:26:46 +0100 |
commit | 71103c80dcce4e8557178efbebd9ba9b7221d4b6 (patch) | |
tree | daa631c5249a042febdd7066cfb8cef7f12383ae /src/libstat/backends | |
parent | bae6532769d959d4cc02959a89970f515d71b856 (diff) | |
download | rspamd-71103c80dcce4e8557178efbebd9ba9b7221d4b6.tar.gz rspamd-71103c80dcce4e8557178efbebd9ba9b7221d4b6.zip |
[Minor] Allow 'expire' alias for 'expiry'
Diffstat (limited to 'src/libstat/backends')
-rw-r--r-- | src/libstat/backends/redis_backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index d520036b1..7f76eb831 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -1208,7 +1208,7 @@ rspamd_redis_try_ucl (struct redis_stat_ctx *backend, backend->new_schema = FALSE; } - elt = ucl_object_lookup (obj, "expiry"); + elt = ucl_object_lookup_any (obj, "expiry", "expire", NULL); if (elt) { backend->expiry = ucl_object_toint (elt); } |