summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-01-02 23:44:38 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-01-02 23:44:38 +0200
commit9457f7a9384658fe4a8e290c87ff846e855fa511 (patch)
tree0a7ca3c58c47d7f5ff80c2cdfd56722c198c2b7c /src/plugins
parent92959b6a37374404ce3ee903e5905caaf2e22719 (diff)
downloadrspamd-9457f7a9384658fe4a8e290c87ff846e855fa511.tar.gz
rspamd-9457f7a9384658fe4a8e290c87ff846e855fa511.zip
Settings: fix IP match
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/settings.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index a37057591..32d256d65 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -125,10 +125,10 @@ local function check_settings(task)
local function check_ip_setting(rule, ip)
if rule[2] ~= 0 then
local nip = ip:apply_mask(rule[2])
- if nip and nip == rule[1] then
+ if nip and nip:to_string() == rule[1]:to_string() then
return true
end
- elseif ip == rule[1] then
+ elseif ip:to_string() == rule[1]:to_string() then
return true
end