# HG changeset patch # User Link Mauve # Date 1769781801 -3600 # Node ID 81f06628fea4906449eafc493ba76b579b2a4f71 # Parent caaa9ea58bec495baba24984a1bca2d38d15f401 mod_firewall: Switch to prosody.util.time.now() to get the current time diff -r caaa9ea58bec -r 81f06628fea4 mod_firewall/mod_firewall.lua --- a/mod_firewall/mod_firewall.lua Tue Jan 27 21:12:21 2026 +0100 +++ b/mod_firewall/mod_firewall.lua Fri Jan 30 15:03:21 2026 +0100 @@ -204,7 +204,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();]]; }; + timestamp = { global_code = [[local get_time = require "prosody.util.time".now;]]; local_code = [[local current_timestamp = get_time();]]; }; globalthrottle = { global_code = function (throttle) assert(idsafe(throttle), "Invalid rate limit name: "..throttle);