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

ipv6 with cidr greater than 32 #1254

Closed
visur opened this issue Jul 23, 2017 · 1 comment
Closed

ipv6 with cidr greater than 32 #1254

visur opened this issue Jul 23, 2017 · 1 comment
Assignees
Labels
bug Bug or defect
Milestone

Comments

@visur
Copy link

visur commented Jul 23, 2017

Joi Version: 10.6.0
Node: v8.1.2
Validator: Joi.string().ip({ version: ['ipv4'], cidr: 'required' });

IP v6 is 128 bit value, so cidr 128 is valid, but if you validate this:
2001:b8:abcd:1000::/48
in joi it is invalid.

@Marsup
Copy link
Collaborator

Marsup commented Jul 23, 2017

Duplicate of #1232.

@Marsup Marsup closed this as completed Jul 23, 2017
@Marsup Marsup self-assigned this Jul 23, 2017
@Marsup Marsup added this to the 11.0.0 milestone Jul 23, 2017
@Marsup Marsup added the bug Bug or defect label Jul 23, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

No branches or pull requests

2 participants