mod_firewall: Fix usage of incorrect variable current_time in ORIGIN_MARKED condition (thanks Ge0rG)
--- 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