From 1cd4b567d728075307a139d28968dbb8d8409292 Mon Sep 17 00:00:00 2001 From: Wouter Koch Date: Tue, 17 Mar 2026 17:00:59 +0100 Subject: [PATCH] Normalize IPv6 so lookups can be done --- ipCountryLookup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipCountryLookup.js b/ipCountryLookup.js index 343af27..4865202 100644 --- a/ipCountryLookup.js +++ b/ipCountryLookup.js @@ -71,8 +71,8 @@ class IPCountryLookup { }); } else { ranges.push({ - start: parts[0], - end: parts[1], + start: this.normalizeIPv6(parts[0]), + end: this.normalizeIPv6(parts[1]), country: parts[2].trim() // Trim whitespace from country code }); }