Переглянути джерело

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

tags/1.7.0
Andrew Lewis 6 роки тому
джерело
коміт
8308c7983f

+ 1
- 1
src/plugins/lua/dmarc.lua Переглянути файл

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

+ 1
- 1
src/plugins/lua/hfilter.lua Переглянути файл

} }


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

+ 1
- 1
src/plugins/lua/ip_score.lua Переглянути файл

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

+ 1
- 1
src/plugins/lua/once_received.lua Переглянути файл

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

Завантаження…
Відмінити
Зберегти