add note on why we use ipaddr.process instead of ipaddr.parse

This commit is contained in:
Girish Ramakrishnan
2025-05-05 17:34:55 +02:00
parent 06ea69ae4a
commit fde6e5f1fb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ function isIpAllowedSync(token, ip) {
assert.strictEqual(typeof token, 'object');
assert.strictEqual(typeof ip, 'string');
const parsedIp = ipaddr.process(ip);
const parsedIp = ipaddr.process(ip); // will demangle IPv4-mapped IPv6
let allowedIpRanges = gParsedRangesCache.get(token.id); // returns undefined if not found
if (!allowedIpRanges) {