]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Ratelimit: Do not forget to register symbol
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Apr 2021 15:24:51 +0000 (16:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Apr 2021 15:30:47 +0000 (16:30 +0100)
src/plugins/lua/ratelimit.lua

index 7f999a8c4e0abcd9dcd52314b05e9f09ea245ac9..8e51b4e6b4e866db5791990b9092e8305feae88f 100644 (file)
@@ -874,6 +874,14 @@ if opts then
         parent = id
       }
     end
+    if settings.symbol then
+      rspamd_config:register_symbol{
+        type = 'virtual',
+        name = settings.symbol,
+        score = 0.0, -- Might be overridden if needed
+        parent = id
+      }
+    end
 
     rspamd_config:register_symbol {
       type = 'idempotent',