TODO for myself

This commit is contained in:
Andras Bacsai 2022-05-05 15:28:32 +02:00
parent e2e342851a
commit a18e3659aa

View File

@ -34,6 +34,7 @@ export const post: RequestHandler = async (event) => {
const ipDomain = await dns.resolve4(domain);
const ipDomainDualCert = await dns.resolve4(domainDualCert);
console.log({ ipDomain, ipDomainDualCert });
// TODO: Check if ipDomain and ipDomainDualCert are the same, but not like this
if (
ipDomain.length === ipDomainDualCert.length &&
ipDomain.every((v) => ipDomainDualCert.indexOf(v) >= 0)