]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Allow to specify prefix for fann_redis
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 28 Nov 2016 14:22:24 +0000 (14:22 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 28 Nov 2016 14:22:24 +0000 (14:22 +0000)
src/plugins/lua/fann_redis.lua

index beea591a55ec2bcbdfdc150d46c255f89dabd148..df995ee5149a636a83bfb69ffc6f674c4caae620 100644 (file)
@@ -844,6 +844,9 @@ else
   if opts['ham_symbol'] then
     fann_symbol_ham = opts['ham_symbol']
   end
+  if opts['prefix'] then
+    fann_prefix = opts['prefix']
+  end
   rspamd_config:set_metric_symbol({
     name = fann_symbol_spam,
     score = 3.0,