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