whitequark / ipaddr.js

IP address manipulation library in JavaScript
MIT License
576 stars 92 forks source link

IPv4-mapped IPv6 addresses and IPv4-translated addresses are not taken as valid IPv6 addresses #140

Closed Bhaskar1312 closed 4 years ago

Bhaskar1312 commented 4 years ago

examples ::255.255.255.255 ::ffff:255.255.255.255 ::ffff:0:255.255.255.255

IPv6.parse('::255.255.255.255').toByteArray(); //throws error "ipv6 part count should be 8 or 16"

whitequark commented 4 years ago

To be clear, IPv4-mapped IPv6 addresses work, what doesn't work is the decimal form.