From 27d6bffa5b295e0fbca6d3eda0ee17c834fede81 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 9 May 2017 14:19:55 +0200 Subject: [PATCH] [Fix] Multimap: Received IP filters with Redis - Issue: #1623 - Reported by: @andryyy --- src/plugins/lua/multimap.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index ae63b47bd..1db4b7967 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -373,7 +373,8 @@ local function multimap_callback(task, rule) ret = r['cdb']:lookup(srch) elseif r['redis_key'] then local srch = value - if r['type'] == 'ip' then + if r['type'] == 'ip' or (r['type'] == 'received' and + (r['filter'] == 'real_ip' or r['filter'] == 'from_ip' or not r['filter'])) then srch = value:to_string() end ret = rspamd_redis_make_request(task, -- 2.39.5