Skip to content

Commit

Permalink
remove uneeded logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammerIn-wonderland committed Jul 28, 2024
1 parent 5583739 commit 7848937
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/browser/fetch_network.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ function validateIPaddress(ipaddress) {

// DNS over HTTPS fetch, recursively fetch the A record until the first result is an IPv4
async function dohdns(q) {
console.log("Got DNS query: ");
console.log(q);
const preffered_fetch = (window.anura?.net?.fetch) || fetch;
const req = await preffered_fetch(`https://dns.google/resolve?name=${q.name.join(".")}&type=${q.type}`);
if (req.status == 200) {
Expand All @@ -89,7 +87,6 @@ async function dohdns(q) {
if (validateIPaddress(res.Answer[0].data)) {
return res;
} else {
console.log({name: res.Answer[0].data, type: q.type});
return await dohdns({name: res.Answer[0].data.split("."), type: q.type});
}
}
Expand Down

0 comments on commit 7848937

Please sign in to comment.