Adds DoH capabilities

This commit is contained in:
Pierre Lannoy 2023-12-13 18:27:36 +01:00
commit 43cc069300
Signed by: Pierre Lannoy
GPG key ID: D27231EF87D53F31

View file

@ -67,7 +67,7 @@ export async function findTxtRecord(host) {
const resolved = await resolver.query( host); const resolved = await resolver.query( host);
if (resolved.response.answers) { if (resolved.response.answers) {
for (const head of resolve.data.Answer) { for (const head of resolved.response.answers) {
const txtData = parseTxtRecordData(head.data); const txtData = parseTxtRecordData(head.data);
if (!txtData[recordParamDestUrl]) continue; if (!txtData[recordParamDestUrl]) continue;
return { return {