diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-12-11 11:22:40 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-12-11 11:22:40 +0200 |
commit | 8308c7983fbdefd6ba72807888b1f7403d92a8f0 (patch) | |
tree | e3e123b129416534043ecbe01a79d89c2b8c1ccf /src | |
parent | 632a95456f62eb996e59c3a9515da9f616473ed2 (diff) | |
download | rspamd-8308c7983fbdefd6ba72807888b1f7403d92a8f0.tar.gz rspamd-8308c7983fbdefd6ba72807888b1f7403d92a8f0.zip |
[Fix] Setting check_local / check_authed in plugins (#1954)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/dmarc.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/hfilter.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/ip_score.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/once_received.lua | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index b97881f9f..4a5a5be19 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -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 diff --git a/src/plugins/lua/hfilter.lua b/src/plugins/lua/hfilter.lua index 0b8235719..522394184 100644 --- a/src/plugins/lua/hfilter.lua +++ b/src/plugins/lua/hfilter.lua @@ -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 diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua index bd64ba48f..0e9d8920e 100644 --- a/src/plugins/lua/ip_score.lua +++ b/src/plugins/lua/ip_score.lua @@ -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 diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index d8fae5cf1..75d551ec1 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -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 |