Content deleted Content added
reorder some functions, other minor changes |
simplified IPv6 compression function |
||
Line 111:
static #compressIPv6(ipv6) {
let run = null;
for (const
if (!run || match[1].length > run[1].length) {
run = match;
}
}
return run ? `${ipv6.slice(0, run.index)}::${ipv6.slice(run.index + run[0].length)}` : ipv6;
}
}
|