We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8931628 commit 54a68e4Copy full SHA for 54a68e4
src/index.ts
@@ -48,6 +48,7 @@ export function createChecker(
48
if (!util.isIP(address)) {
49
throw new Error(`not a valid IPv4 or IPv6 address: ${address}`);
50
}
51
+
52
// for mapped IPv4 addresses, compare against both IPv6 and IPv4 subnets
53
if (util.isIPv6(address) && IPv6.isIPv4MappedAddress(address)) {
54
return check6(address) || check4(IPv6.extractMappedIpv4(address));
0 commit comments