Browse Source

[Fix] Setting check_local / check_authed in plugins (#1954)

tags/1.7.0
Andrew Lewis 6 years ago
parent
commit
8308c7983f

+ 1
- 1
src/plugins/lua/dmarc.lua View File

@@ -594,7 +594,7 @@ local function dmarc_callback(task)
end

local opts = rspamd_config:get_all_opt('options')
if opts and type(opts) ~= 'table' then
if type(opts) == 'table' then
if type(opts['check_local']) == 'boolean' then
check_local = opts['check_local']
end

+ 1
- 1
src/plugins/lua/hfilter.lua View File

@@ -576,7 +576,7 @@ local symbols_from = {
}

local opts = rspamd_config:get_all_opt('options')
if opts and type(opts) ~= 'table' then
if type(opts) == 'table' then
if type(opts['check_local']) == 'boolean' then
check_local = opts['check_local']
end

+ 1
- 1
src/plugins/lua/ip_score.lua View File

@@ -350,7 +350,7 @@ end
-- Configuration options
local configure_ip_score_module = function()
local opts = rspamd_config:get_all_opt('options')
if opts and type(opts) ~= 'table' then
if type(opts) == 'table' then
if type(opts['check_authed']) == 'boolean' then
check_authed = opts['check_authed']
end

+ 1
- 1
src/plugins/lua/once_received.lua View File

@@ -141,7 +141,7 @@ local function check_quantity_received (task)
end

local opts = rspamd_config:get_all_opt('options')
if opts and type(opts) ~= 'table' then
if type(opts) == 'table' then
if type(opts['check_local']) == 'boolean' then
check_local = opts['check_local']
end

Loading…
Cancel
Save