From: Andrew Lewis Date: Mon, 10 Oct 2016 08:39:18 +0000 (+0200) Subject: [Minor] Fix local IP check in Replies plugin X-Git-Tag: 1.4.0~278^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6932dd8c1f1daece6ba7c65fe1003f6a5ee7b3d7;p=rspamd.git [Minor] Fix local IP check in Replies plugin --- 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