Change website label to domain

This commit is contained in:
Yarmo Mackenbach 2020-06-28 18:32:48 +02:00
parent 0270b343a3
commit 271091a0d8

View file

@ -249,7 +249,7 @@ async function verifyProof(url, fingerprint) {
// DNS // DNS
if (/^dns:/.test(url)) { if (/^dns:/.test(url)) {
output.type = "website"; output.type = "domain";
output.display = url.replace(/dns:/, '').replace(/\?type=TXT/, ''); output.display = url.replace(/dns:/, '').replace(/\?type=TXT/, '');
output.proofUrl = `https://dns.shivering-isles.com/dns-query?name=${output.display}&type=TXT`; output.proofUrl = `https://dns.shivering-isles.com/dns-query?name=${output.display}&type=TXT`;
output.proofUrlFetch = output.proofUrl; output.proofUrlFetch = output.proofUrl;