diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-23 14:28:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 14:28:39 +0000 |
commit | 527bc5bb0c06a6939fc6151e851f591560193b28 (patch) | |
tree | 35e43053942a26ac194473e7f5d7ff148b4865ff | |
parent | e4c2ce782088fa786b112e0bb8ceb4e92e7a3722 (diff) | |
parent | 11fcf5d6f30ae8b59975c5937a065ea271923293 (diff) | |
download | rspamd-527bc5bb0c06a6939fc6151e851f591560193b28.tar.gz rspamd-527bc5bb0c06a6939fc6151e851f591560193b28.zip |
Merge pull request #1167 from fatalbanana/symbols
[Minor] Add missing symbol registration in ASN module
-rw-r--r-- | src/plugins/lua/asn.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/lua/asn.lua b/src/plugins/lua/asn.lua index e3945842c..c632ae182 100644 --- a/src/plugins/lua/asn.lua +++ b/src/plugins/lua/asn.lua @@ -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 |