diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-28 17:05:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-28 17:05:39 +0100 |
commit | 6883aef21422cc208d2b990d42a910bc76e6db24 (patch) | |
tree | e3d67fcec090e2e1c2adb637bd387ea269902162 | |
parent | 26ff9c3218c334f15f11a344404fafb5035459ae (diff) | |
download | rspamd-6883aef21422cc208d2b990d42a910bc76e6db24.tar.gz rspamd-6883aef21422cc208d2b990d42a910bc76e6db24.zip |
[Fix] Always register openphish and phishtank virtual symbols
-rw-r--r-- | src/plugins/lua/phishing.lua | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua index 04a0fe9b7..bb7148fb6 100644 --- a/src/plugins/lua/phishing.lua +++ b/src/plugins/lua/phishing.lua @@ -271,21 +271,17 @@ if opts then }) end - if openphish_hash then - rspamd_config:register_symbol({ - type = 'virtual', - parent = id, - name = openphish_symbol, - }) - end + rspamd_config:register_symbol({ + type = 'virtual', + parent = id, + name = openphish_symbol, + }) - if phishtank_hash then - rspamd_config:register_symbol({ - type = 'virtual', - parent = id, - name = phishtank_symbol, - }) - end + rspamd_config:register_symbol({ + type = 'virtual', + parent = id, + name = phishtank_symbol, + }) end if opts['domains'] and type(opt['domains']) == 'string' then domains = rspamd_config:add_map({ |