end | end | ||||
local opts = rspamd_config:get_all_opt('options') | 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 | if type(opts['check_local']) == 'boolean' then | ||||
check_local = opts['check_local'] | check_local = opts['check_local'] | ||||
end | end |
} | } | ||||
local opts = rspamd_config:get_all_opt('options') | 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 | if type(opts['check_local']) == 'boolean' then | ||||
check_local = opts['check_local'] | check_local = opts['check_local'] | ||||
end | end |
-- Configuration options | -- Configuration options | ||||
local configure_ip_score_module = function() | local configure_ip_score_module = function() | ||||
local opts = rspamd_config:get_all_opt('options') | 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 | if type(opts['check_authed']) == 'boolean' then | ||||
check_authed = opts['check_authed'] | check_authed = opts['check_authed'] | ||||
end | end |
end | end | ||||
local opts = rspamd_config:get_all_opt('options') | 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 | if type(opts['check_local']) == 'boolean' then | ||||
check_local = opts['check_local'] | check_local = opts['check_local'] | ||||
end | end |