*Fix cache id generation

This commit is contained in:
Derrick Hammer 2022-08-21 23:37:13 -04:00
parent e5f02c413b
commit 512b85aa55
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ export async function resolve(
options?: ResolverOptions,
bypassCache = false
): Promise<DNSResult | Error> {
let cacheId = `${domain}:{${blake2b(
new TextEncoder().encode(JSON.stringify(options))
let cacheId = `${domain}:${bufToHex(
blake2b(new TextEncoder().encode(JSON.stringify(options)))
)}`;
if (cache.has(cacheId)) {