Chore: update domain alive check

This commit is contained in:
SukkaW 2025-05-05 22:31:56 +08:00
parent cd0fd4d3dd
commit 42ab976325

View File

@ -244,7 +244,7 @@ async function isApexDomainAlive(apexDomain: string): Promise<[string, boolean]>
}
console.log(picocolors.red('[domain dead]'), 'whois not found', { domain: apexDomain, err: whoisError });
return onDomainDead(apexDomain);
return onDomainDead('.' + apexDomain);
}
// TODO: this is a workaround for https://github.com/LayeredStudio/whoiser/issues/117