Skip to content

ipv6 with cidr greater than 32 #1254

@visur

Description

@visur

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.

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions