fix(integrations): не считать CNAME hostname за IP при sync
Build and Push CFDM Docker Image / build-and-push (push) Successful in 1m49s
Build and Push CFDM Docker Image / create-release (push) Skipped
Build and Push CFDM Docker Image / update-wiki (push) Successful in 6s

JOIN dns_record клал content CNAME в target_ips и блокировал разворот до origin IP / service IPs.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
DenozordecandCursor committed 2026-08-01 01:30:25 +07:00
1 parent ec70104085
commit 721332e767
6 files changed
+86 -19

No files matched your search

+8
View File
@@ -88,3 +88,11 @@ export function isValidIpv4(ip: string): boolean {
return Number.isInteger(n) && n >= 0 && n <= 255;
});
}
/** true для IPv4/IPv6; false для hostname (важно: CNAME content не должен считаться IP). */
export function isIpLiteral(value: string): boolean {
const v = value.trim();
if (!v) return false;
if (isValidIpv4(v)) return true;
return IPV6_RE.test(v);
}