fix(integrations): не считать CNAME hostname за IP при sync
JOIN dns_record клал content CNAME в target_ips и блокировал разворот до origin IP / service IPs. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
ec70104085
commit
721332e767
6 files changed
+86
-19
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user