]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow 'expire' alias for 'expiry'
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 18 May 2017 13:26:46 +0000 (14:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 18 May 2017 13:26:46 +0000 (14:26 +0100)
src/libstat/backends/redis_backend.c

index d520036b13335f683e0c71ca9294aab7fdb789f8..7f76eb831475a1e3e94682a71c6380c49f67d0bf 100644 (file)
@@ -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);
        }