# HG changeset patch # User Matthew Wild # Date 1458217668 0 # Node ID 2bb42ba342f3fd632c79d79af3a76fe9e4d19807 # Parent 2ae5286f1b9a32ebb71b50631fa77dbb3fa482ff mod_firewall: Fix usage of incorrect variable current_time in ORIGIN_MARKED condition (thanks Ge0rG) diff -r 2ae5286f1b9a -r 2bb42ba342f3 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Thu Mar 17 12:11:12 2016 +0000 +++ b/mod_firewall/conditions.lib.lua Thu Mar 17 12:27:48 2016 +0000 @@ -194,7 +194,7 @@ error("Error parsing mark name, see documentation for usage examples"); end if time then - return ("(current_time - (session.firewall_marked_%s or 0)) < %d"):format(idsafe(name), tonumber(time)), { "timestamp" }; + return ("(current_timestamp - (session.firewall_marked_%s or 0)) < %d"):format(idsafe(name), tonumber(time)), { "timestamp" }; end return ("not not session.firewall_marked_"..idsafe(name)); end