fix: debug
This commit is contained in:
parent
1daf045506
commit
b35191bea2
|
@ -59,6 +59,8 @@ addEventListener("fetch", (event: any) => {
|
||||||
// Use your existing communication framework to resolve DNS.
|
// Use your existing communication framework to resolve DNS.
|
||||||
const dnsResult = await dnsClient.resolve(new URL(realUrl).hostname);
|
const dnsResult = await dnsClient.resolve(new URL(realUrl).hostname);
|
||||||
|
|
||||||
|
console.log("realUrl", realUrl);
|
||||||
|
|
||||||
if (!dnsResult.error && dnsResult.records.length > 0) {
|
if (!dnsResult.error && dnsResult.records.length > 0) {
|
||||||
return providerManager.fetch(dnsResult, new URL(realUrl).pathname);
|
return providerManager.fetch(dnsResult, new URL(realUrl).pathname);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue