Browse Source

[Fix] Always register openphish and phishtank virtual symbols

tags/1.3.0
Vsevolod Stakhov 8 years ago
parent
commit
6883aef214
1 changed files with 10 additions and 14 deletions
  1. 10
    14
      src/plugins/lua/phishing.lua

+ 10
- 14
src/plugins/lua/phishing.lua View File

@@ -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({

Loading…
Cancel
Save