We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ac7a4b commit 0bd949dCopy full SHA for 0bd949d
library/helpers/mapIPv4ToIPv6.ts
@@ -1,6 +1,6 @@
1
/**
2
* Maps an IPv4 address to an IPv6 address.
3
- * e.g. 127.0.0.1/8 -> ::ffff:127
+ * e.g. 127.0.0.0/8 -> ::ffff:127.0.0.0/104
4
*/
5
export default function mapIPv4ToIPv6(ip: string): string {
6
if (!ip.includes("/")) {
0 commit comments