ip-utilties 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ip.mjs +4 -4
package/package.json
CHANGED
package/src/ip.mjs
CHANGED
|
@@ -230,12 +230,12 @@ export function normalizeCIDR(address) {
|
|
|
230
230
|
longPrefix = prefix;
|
|
231
231
|
prefixLength = 64;
|
|
232
232
|
} else if (isUniqueLocal(address)) {
|
|
233
|
-
//prefix = "fd00::";
|
|
234
233
|
prefixLength = 64;
|
|
235
|
-
|
|
236
|
-
let n = _prefix(ipv6, address, prefixLength);
|
|
234
|
+
const n = _prefix(ipv6, address, prefixLength);
|
|
237
235
|
prefix = _decode(ipv6, n, prefixLength);
|
|
238
|
-
|
|
236
|
+
if(!prefix.endsWith('::')) { // TODO
|
|
237
|
+
prefix += '::';
|
|
238
|
+
}
|
|
239
239
|
longPrefix = prefix;
|
|
240
240
|
} else {
|
|
241
241
|
const family = /*_family(prefix); */ isIPv6(prefix) ? ipv6 : ipv4;
|