jgonian / commons-ip-math

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

It's bug? #24

Closed kubitre closed 2 years ago

kubitre commented 2 years ago

Hello! I use u library for ip calc. But when i type to IPv4Range.parse("1.1.1.1/24") i get error "is not a legal IPv4 address prefix". Why? I see your code and i saw that u use equal with first address, Why?

kubitre commented 2 years ago

I'm sorry, i found rfc and it's truth way for cidr parsing image

kubitre commented 2 years ago

your solution work normal for this case