]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix local IP check in Replies plugin 1021/head
authorAndrew Lewis <nerf@judo.za.org>
Mon, 10 Oct 2016 08:39:18 +0000 (10:39 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Mon, 10 Oct 2016 08:39:18 +0000 (10:39 +0200)
src/plugins/lua/replies.lua

index c3de18e8e85f224cb2ac2699b844c962792fc5ca..236cb562631c180135a3ee98c3a1459a0a0e7f86 100644 (file)
@@ -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