Adds DoH capabilities
This commit is contained in:
parent
6169c8af9c
commit
4919f0c600
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ const parseTxtRecordData = (value) => {
|
|||
*/
|
||||
export async function findTxtRecord(host) {
|
||||
const resolver = new DohResolver('https://doh.hosterra.tech/dns-query');
|
||||
resolver.query( host)
|
||||
/*resolver.query( host)
|
||||
.then(response => {
|
||||
response.answers.forEach(ans => {
|
||||
throw new Error(ans)
|
||||
|
|
@ -79,7 +79,7 @@ export async function findTxtRecord(host) {
|
|||
|
||||
});
|
||||
})
|
||||
.catch(throw new Error(err));
|
||||
.catch(throw new Error(err));*/
|
||||
|
||||
|
||||
//const resolved = await resolver.query( host );
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue