# HG changeset patch # User Matthew Wild # Date 1458213755 0 # Node ID cbd0095e930237b6fe86cd4e33fd69a1e862efbc # Parent a8c701631d0b2ce9158b4d12679a36f956275d8b mod_firewall: Add 'timestamp' dep to get current_timestamp diff -r a8c701631d0b -r cbd0095e9302 mod_firewall/mod_firewall.lua --- a/mod_firewall/mod_firewall.lua Thu Mar 17 11:22:18 2016 +0000 +++ b/mod_firewall/mod_firewall.lua Thu Mar 17 11:22:35 2016 +0000 @@ -80,6 +80,7 @@ end return table.concat(defs, " "); end, depends = { "date_time" }; }; + timestamp = { global_code = [[local get_time = require "socket".gettime]]; local_code = [[local current_timestamp = get_time()]]; }; throttle = { global_code = function (throttle) assert(idsafe(throttle), "Invalid rate limit name: "..throttle);