Filter heads
This commit is contained in:
parent
c1c2d6a6b7
commit
135653ddef
2 changed files with 4 additions and 0 deletions
2
app.js
2
app.js
|
|
@ -31,6 +31,8 @@ async function findMaintainerEmail(host) {
|
|||
const resolve = await axios(`https://dns.google/resolve?name=${encodeURIComponent(host)}&type=TXT`);
|
||||
if (resolve.data.Answer) {
|
||||
for (const head of resolve.data.Answer) {
|
||||
if (!head.data.startsWith(record_email_prefix))
|
||||
continue;
|
||||
return head.data.slice(record_email_prefix.length);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue