Skip to content
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

Fix ranges including CIDR notation #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexwhitman
Copy link

Previous code checked for / first, so a range such as

127.0.0.0/24-127.0.3.0/24

would be parsed as a network which would then split on '/' to determine the IP and netmask, eventually causing an invalid IP to be parsed, throwing an error.

Previous code checked for '/' first, so a range such as

127.0.0.0/24-127.0.3.0/24

would be parsed as a network which would then split on '/' to
determine the IP and netmask, eventually causing an invalid IP
to be parsed, throwing an error.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 97.595% when pulling fba4605 on alexwhitman:range-cidr-fix into f6f8ab6 on S1lentium:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants