*Set options record type default to content

This commit is contained in:
Derrick Hammer 2022-08-20 12:43:28 -04:00
parent ac12204391
commit 13eb79ae7e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import type {
} from "@lumeweb/resolver-common";
import { RpcNetwork } from "@lumeweb/kernel-rpc-client";
import { ResolverRegistry } from "./resolverRegistry.js";
import { DNS_RECORD_TYPE } from "@lumeweb/resolver-common";
let resolver: ResolverModule;
@ -33,7 +34,7 @@ async function handleResolve(aq: ActiveQuery) {
try {
ret = await resolver.resolve(
aq.callerInput.domain,
aq.callerInput?.options ?? {},
aq.callerInput?.options ?? { type: DNS_RECORD_TYPE.CONTENT },
aq.callerInput?.bypassCache || false
);
} catch (e: any) {