From 70cca14afc8c2964976458fdf7e6149954137754 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Thu, 2 Mar 2023 15:48:21 -0600 Subject: [PATCH] feat: export query function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This exports the `query` function so that users can use custom `resolver` options, e.g. 🍊 [Tangerine](https://github.com/forwardemail/tangerine) which supports DNS over HTTPS ("DoH"). --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cd606c1..12486c0 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ const defaults = { includeTxt: false, }; -async function query(addr, blacklist, resolver, opts = {}) { +export async function query(addr, blacklist, resolver, opts = {}) { const name = `${ipPtr(addr).replace(/\.i.+/, "")}.${blacklist}`; const timeout = setTimeout(() => {