Improve DNS proof link

This commit is contained in:
Yarmo Mackenbach 2020-06-27 00:53:31 +02:00
parent 20818ac566
commit b1b01623dc

View file

@ -224,7 +224,8 @@ async function verifyProof(url, fingerprint) {
if (/^dns:/.test(url)) { if (/^dns:/.test(url)) {
output.type = "website"; output.type = "website";
output.display = url.replace(/dns:/, '').replace(/\?type=TXT/, ''); output.display = url.replace(/dns:/, '').replace(/\?type=TXT/, '');
output.proofUrlFetch = `https://dns.google.com/resolve?name=${output.display}&type=TXT`; output.proofUrl = `https://dns.google.com/resolve?name=${output.display}&type=TXT`;
output.proofUrlFetch = output.proofUrl;
output.url = `https://${output.display}`; output.url = `https://${output.display}`;
try { try {