diff options
author | Andrew Lewis <nerf@judo.za.org> | 2018-01-10 18:54:57 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2018-01-10 18:54:57 +0200 |
commit | 0af70be36359d48563d50e47a9365d91fe2ff13f (patch) | |
tree | 20e2ebf6073ea267774063646dfec6bee0162177 | |
parent | 187dc259dd3cc1bdfaf0d94cccf2deba9943f307 (diff) | |
download | rspamd-0af70be36359d48563d50e47a9365d91fe2ff13f.tar.gz rspamd-0af70be36359d48563d50e47a9365d91fe2ff13f.zip |
[Fix] Settings: avoid checking invalid IP (#1981)
-rw-r--r-- | src/plugins/lua/settings.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index 93e9a56be..7789d980c 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -174,7 +174,7 @@ local function check_settings(task) end if rule['ip'] then - if not ip then + if not ip or not ip:is_valid() then return nil end for _, i in ipairs(rule['ip']) do |