Remove TTL remains from query log

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-11-09 15:27:32 +01:00
committed by Adam Warner
parent 50c44cfbe2
commit b06320eccc

View File

@@ -389,22 +389,6 @@ function formatInfo(data) {
divStart + "Query was blocked during CNAME inspection of&nbsp;&nbsp;" + data.cname + "</div>"; divStart + "Query was blocked during CNAME inspection of&nbsp;&nbsp;" + data.cname + "</div>";
} }
// Show TTL if applicable
let ttlInfo = "";
if (data.ttl > 0) {
ttlInfo =
divStart +
"Time-to-live (TTL):&nbsp;&nbsp;" +
luxon.Duration.fromObject({ seconds: data.ttl }).toHuman({
smallestUnit: "seconds",
maxUnits: 2,
stripZeroUnits: "all",
}) +
" (" +
data.ttl +
"s)</div>";
}
// Show client information, show hostname only if available // Show client information, show hostname only if available
const ipInfo = const ipInfo =
data.client.name !== null && data.client.name.length > 0 data.client.name !== null && data.client.name.length > 0