From 1b85d516787aba7caa8ea53907f782ee5fec8bb8 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 c85919881..f5f5edaca 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -369,7 +369,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