add note on why we use ipaddr.process instead of ipaddr.parse
This commit is contained in:
@@ -74,7 +74,7 @@ async function setBlocklist(blocklist, auditSource) {
|
||||
assert.strictEqual(typeof blocklist, 'string');
|
||||
assert.strictEqual(typeof auditSource, 'object');
|
||||
|
||||
const parsedIp = ipaddr.process(auditSource.ip);
|
||||
const parsedIp = ipaddr.process(auditSource.ip); // will demangle IPv4 mapped IPv6
|
||||
|
||||
let count = 0;
|
||||
for (const line of blocklist.split('\n')) {
|
||||
|
||||
Reference in New Issue
Block a user