mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Remove TTL remains from query log
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -389,22 +389,6 @@ function formatInfo(data) {
|
||||
divStart + "Query was blocked during CNAME inspection of " + data.cname + "</div>";
|
||||
}
|
||||
|
||||
// Show TTL if applicable
|
||||
let ttlInfo = "";
|
||||
if (data.ttl > 0) {
|
||||
ttlInfo =
|
||||
divStart +
|
||||
"Time-to-live (TTL): " +
|
||||
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
|
||||
const ipInfo =
|
||||
data.client.name !== null && data.client.name.length > 0
|
||||
|
||||
Reference in New Issue
Block a user