]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add missing symbol registration in ASN module 1167/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 23 Nov 2016 14:27:58 +0000 (16:27 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 23 Nov 2016 14:27:58 +0000 (16:27 +0200)
src/plugins/lua/asn.lua

index e3945842cc26b4e099ce2b70f5d2a6141c6bc853..c632ae1827a0cd946f57d10e38531114e0c4f9ef 100644 (file)
@@ -174,10 +174,17 @@ local configure_asn_module = function()
 end
 
 if configure_asn_module() then
-  rspamd_config:register_symbol({
+  local id = rspamd_config:register_symbol({
     name = 'ASN_CHECK',
     type = 'prefilter',
     callback = asn_check,
     priority = 10,
   })
+  if options['symbol'] then
+    rspamd_config:register_symbol({
+      name = options['symbol'],
+      parent = id,
+      type = 'virtual'
+    })
+  end
 end