fix: dns checking

This commit is contained in:
Andras Bacsai
2022-08-06 09:21:16 +00:00
parent 3d488da5ab
commit de77cbb9d8
6 changed files with 10 additions and 9 deletions

View File

@@ -318,12 +318,12 @@ export async function isDomainConfigured({
id,
fqdn,
checkOwn = false,
dockerId = undefined
remoteIpAddress = undefined
}: {
id: string;
fqdn: string;
checkOwn?: boolean;
dockerId?: string;
remoteIpAddress?: string;
}): Promise<boolean> {
const domain = getDomain(fqdn);
const nakedDomain = domain.replace('www.', '');
@@ -335,7 +335,7 @@ export async function isDomainConfigured({
],
id: { not: id },
destinationDocker: {
id: dockerId
remoteIpAddress,
}
},
select: { fqdn: true }
@@ -350,7 +350,7 @@ export async function isDomainConfigured({
],
id: { not: checkOwn ? undefined : id },
destinationDocker: {
id: dockerId
remoteIpAddress
}
},
select: { fqdn: true }