mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 18:29:43 +01:00
Use the same types, as returned by FTL
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -475,7 +475,7 @@ function returnError($message = "", $json = true)
|
||||
|
||||
function getQueryTypeStr($querytype)
|
||||
{
|
||||
$qtypes = ["A (IPv4)", "AAAA (IPv6)", "ANY", "SRV", "SOA", "PTR", "TXT", "NAPTR", "MX", "DS", "RRSIG", "DNSKEY", "NS", "OTHER", "SVCB", "HTTPS"];
|
||||
$qtypes = ["A", "AAAA", "ANY", "SRV", "SOA", "PTR", "TXT", "NAPTR", "MX", "DS", "RRSIG", "DNSKEY", "NS", "OTHER", "SVCB", "HTTPS"];
|
||||
$qtype = intval($querytype);
|
||||
if($qtype > 0 && $qtype <= count($qtypes))
|
||||
return $qtypes[$qtype-1];
|
||||
|
||||
Reference in New Issue
Block a user