]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Return a valid unix timestamp for Dynamic Block's `until`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 20 Aug 2024 11:04:11 +0000 (13:04 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 20 Aug 2024 11:07:19 +0000 (13:07 +0200)
commit8cb758ae0c791866f8a6a4f76e41470754d04316
tree8b0be6612e42f7725118ea8532435048e544b0fc
parent5dd2221f07fb1d83e64bfe318a3bcc4f36966fa6
dnsdist: Return a valid unix timestamp for Dynamic Block's `until`

We internally use a timestamp obtained via `CLOCK_MONOTONIC` which
is quite useless to an external observer, so convert it to a normal
unix timestamp in the Lua accessor.
pdns/dnsdistdist/dnsdist-lua-inspection.cc