jgonian / commons-ip-math

https://github.com/jgonian/commons-ip-math
MIT License
74 stars 19 forks source link

Parsing double "::" in IPv6 Addresses with embedded IPv4 #4

Closed jgonian closed 8 years ago

jgonian commented 9 years ago

As reported on stackoverflow, the IPv6 address 1111:2222:3333:4444:5555:6666::1.2.3.4 should be invalid because of double "::", but Ipv6.parse("1111:2222:3333:4444:5555:6666::1.2.3.4") is forgiving, parsing it to 1111:2222:3333:4444:5555:6666:102:304.