jgonian / commons-ip-math

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

Ipv6Range fails on parsing IP v6 range #20

Closed JureMalovrh closed 5 years ago

JureMalovrh commented 5 years ago

When trying to run this code: Ipv6Range.parse("fd00::/7").contains(Ipv6.of("fc00:0:0:0:0:0:0:0")), I get exception fd00::1/7 is not a legal IPv6 address prefix..

Am I missing something here or why is this not correct prefix?

JureMalovrh commented 5 years ago

I checked everything and found out the issue. The behavior is correct and this subnet should get rejected.