Adds DoH capabilities
This commit is contained in:
parent
43cc069300
commit
a6486e6db2
2 changed files with 2 additions and 3 deletions
|
|
@ -8,7 +8,6 @@
|
||||||
"node": ">=16.0.0"
|
"node": ">=16.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
|
||||||
"start": "pm2 start app.js",
|
"start": "pm2 start app.js",
|
||||||
"start-proxied": "pm2 start app.js -- 5080 5443",
|
"start-proxied": "pm2 start app.js -- 5080 5443",
|
||||||
"count": "find .certs -type d | grep '.\\.' | wc -l"
|
"count": "find .certs -type d | grep '.\\.' | wc -l"
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ const parseTxtRecordData = (value) => {
|
||||||
export async function findTxtRecord(host) {
|
export async function findTxtRecord(host) {
|
||||||
const resolver = new DohResolver('https://doh.hosterra.tech/dns-query');
|
const resolver = new DohResolver('https://doh.hosterra.tech/dns-query');
|
||||||
const resolved = await resolver.query( host );
|
const resolved = await resolver.query( host );
|
||||||
|
console.log(resolved);
|
||||||
if (resolved.response.answers) {
|
if (resolved.response.answers) {
|
||||||
for (const head of resolved.response.answers) {
|
for (const head of resolved.response.answers) {
|
||||||
const txtData = parseTxtRecordData(head.data);
|
const txtData = parseTxtRecordData(head.data);
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue