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

Add IPv4 subnet validation #62

Merged
merged 2 commits into from Sep 1, 2017

Conversation

paudam
Copy link
Contributor

@paudam paudam commented Apr 3, 2015

Since we can create an ip with a netmask using IPAddress.new "#{ip}/#{mask}", I would suggest that IPAddress.valid? "#{ip}/#{mask}" should also validate it.

@paudam
Copy link
Contributor Author

paudam commented Apr 3, 2015

Please excuse me, I'm not that good with IPv6 netmasking, therefore I did't implement it.

@francisluong francisluong self-assigned this Mar 23, 2016
@smortex
Copy link
Contributor

smortex commented Aug 30, 2017

Hello, this is an old PR!

Now, GitHub can allows maintainers to add commits into your branch, this would allow us to add the corresponding IPv6 code. Can you please enable this feature (on the PR page, at the bottom of the right column, under the participants list, check Allow edits from maintainers. )?

Thanks!

Copy link
Contributor

@smortex smortex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IPv6 should be supported.

@paudam
Copy link
Contributor Author

paudam commented Sep 1, 2017

Hi @smortex, I have got it enabled.

@smortex
Copy link
Contributor

smortex commented Sep 1, 2017

Dear @paudam, I rebased your changes on top of master and added a commit to add similar feature for IPv6.

@francisluong francisluong merged commit f16c587 into ipaddress-gem:master Sep 1, 2017
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.

None yet

3 participants