diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-10 19:15:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-10 19:15:41 +0000 |
commit | c05610ca08481b576e0054121171ee2e238e3761 (patch) | |
tree | 20e2ebf6073ea267774063646dfec6bee0162177 /src/plugins/lua | |
parent | 187dc259dd3cc1bdfaf0d94cccf2deba9943f307 (diff) | |
parent | 0af70be36359d48563d50e47a9365d91fe2ff13f (diff) | |
download | rspamd-c05610ca08481b576e0054121171ee2e238e3761.tar.gz rspamd-c05610ca08481b576e0054121171ee2e238e3761.zip |
Merge pull request #1982 from fatalbanana/1981
[Fix] Settings: avoid checking invalid IP (#1981)
Diffstat (limited to 'src/plugins/lua')
-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 |