Browse Source

[Minor] Print error on multimap invalid type

pull/5477/head
Jose Celestino 7 months ago
parent
commit
df9ed439f2
  1. 3
      src/plugins/lua/multimap.lua

3
src/plugins/lua/multimap.lua

@ -1333,6 +1333,9 @@ local function add_multimap_rule(key, newrule)
end
elseif newrule['type'] == 'dnsbl' then
ret = true
else
rspamd_logger.errx(rspamd_config, 'cannot add rule %s: invalid type %s',
key, newrule['type'])
end
end

Loading…
Cancel
Save