Merge pull request #1671 from Daxtorim/type-ids-to-type-name

Add more query type names to title of Query Log instead of "type <id>"
This commit is contained in:
DL6ER
2020-12-28 11:05:31 +01:00
committed by GitHub
+1 -1
View File
@@ -59,7 +59,7 @@ else if(isset($_GET["forwarddest"]))
}
else if(isset($_GET["querytype"]))
{
$qtypes = ["A (IPv4)", "AAAA (IPv6)", "ANY", "SRV", "SOA", "PTR", "TXT", "NAPTR"];
$qtypes = ["A (IPv4)", "AAAA (IPv6)", "ANY", "SRV", "SOA", "PTR", "TXT", "NAPTR", "MX", "DS", "RRSIG", "DNSKEY", "NS", "OTHER"];
$qtype = intval($_GET["querytype"]);
if($qtype > 0 && $qtype <= count($qtypes))
$showing .= " ".$qtypes[$qtype-1]." queries";