feat(ipintelligence): add canonical RDAP CIDR coverage and derive CIDRs from IPv4 start/end ranges

This commit is contained in:
2026-04-26 20:45:47 +00:00
parent 5331a3c2ce
commit 3e86e99d4f
5 changed files with 139 additions and 11 deletions
+3 -1
View File
@@ -77,6 +77,7 @@ console.log(intel);
// registrantOrg: 'Google LLC',
// registrantCountry: 'United States',
// networkRange: '8.8.8.0/24',
// networkCidrs: ['8.8.8.0/24'],
// abuseContact: null,
// country: null,
// countryCode: 'US',
@@ -109,7 +110,8 @@ interface IIpIntelligenceResult {
// Registration (RDAP)
registrantOrg: string | null;
registrantCountry: string | null;
networkRange: string | null; // CIDR or range
networkRange: string | null; // primary CIDR, or legacy start-end range when multiple CIDRs are needed
networkCidrs: string[] | null; // canonical CIDR coverage for the RDAP network when available
abuseContact: string | null; // abuse email from RDAP
// Geolocation (MaxMind GeoLite2)