-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isValid not working for IPv4 subnets #81
Comments
I think it's confusion on your part between IP inside of subnet and actual sub network address. Here is startAddress() doc fragment: So if you'd like to check whether given IP is a valid network cidr you perhaps should compare startAddress() and correctForm(). Overall this lib's constructor behaves close to Python's
only keeping original IP around (which Python's |
outputs
true
but should
false
, like python's similar libraryThe text was updated successfully, but these errors were encountered: