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:
Denozordec
2026-08-01 01:30:25 +07:00
co-authored by Cursor
parent ec70104085
commit 721332e767
6 changed files with 86 additions and 19 deletions
+7
View File
@@ -85,6 +85,12 @@ function isValidIpv4(ip) {
return Number.isInteger(n) && n >= 0 && n <= 255;
});
}
function isIpLiteral(value) {
const v = value.trim();
if (!v) return false;
if (isValidIpv4(v)) return true;
return IPV6_RE.test(v);
}
// src/subdomain.ts
function dnsNameToSubdomainLabel(recordName, zoneName) {
@@ -730,6 +736,7 @@ export {
ingestAuditEventSchema,
ipHealthStateSchema,
ipHealthStatusSchema,
isIpLiteral,
isValidIpv4,
lbModeSchema,
loginSchema,