Hide blackbutton for internally generated DNSSEC queries (they cannot be blocked)

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2021-07-04 11:37:10 +02:00
parent 762aba21ec
commit f5b59d141b

View File

@@ -219,6 +219,9 @@ $(function () {
// Add EDE here if available and not included in dnssecStatus // Add EDE here if available and not included in dnssecStatus
if (ede.length > 0 && dnssecStatus.length === 0) fieldtext += " (" + ede + ")"; if (ede.length > 0 && dnssecStatus.length === 0) fieldtext += " (" + ede + ")";
// Cannot block internal queries of this type
if ((data[1] === "DNSKEY" || data[1] === "DS") && data[3] === "pi.hole") buttontext = "";
fieldtext += '<input type="hidden" name="id" value="' + parseInt(data[4], 10) + '">'; fieldtext += '<input type="hidden" name="id" value="' + parseInt(data[4], 10) + '">';
if (colorClass !== false) { if (colorClass !== false) {