From 6932dd8c1f1daece6ba7c65fe1003f6a5ee7b3d7 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 10 Oct 2016 10:39:18 +0200 Subject: [PATCH] [Minor] Fix local IP check in Replies plugin --- src/plugins/lua/replies.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua index c3de18e8e..236cb5626 100644 --- a/src/plugins/lua/replies.lua +++ b/src/plugins/lua/replies.lua @@ -51,6 +51,7 @@ local function replies_check(task) -- Hash was found task:insert_result(settings['symbol'], 0.0) if settings['action'] ~= nil then + local ip_addr = task:get_ip() if task:get_user() or (ip_addr and ip_addr:is_local()) then rspamd_logger.infox(task, "not forcing action for local network or authorized user"); else -- 2.39.5