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:
Vendored
+7
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user