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

IPv4 validation not working properly #44

Closed
rskvirskiy opened this issue Jun 14, 2016 · 2 comments
Closed

IPv4 validation not working properly #44

rskvirskiy opened this issue Jun 14, 2016 · 2 comments

Comments

@rskvirskiy
Copy link

ipaddr.IPv4.isValid("1231233") returns true .
But actually this is not valid IPv4.

@whitequark
Copy link
Owner

Nope, it is, according to inet_aton, which is the language that ipaddr.js recognizes: http://linux.die.net/man/3/inet_aton

@whitequark
Copy link
Owner

See ipaddr.IPv4.isValidFourPartDecimal in the 1.2.0 release.

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

No branches or pull requests

2 participants