dddd returning as valid V6 address
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 228
- PR merge metrics
- No merged PRs in 30d
Description
```
require('ip').isV6Format('dddd')
```
I checked on http://www.helpsystems.com/intermapper/ipv6-test-address-validation and it's invalid according to that. and also the inet_pton function http://locutus.io/php/network/inet_pton/ throws an error with `dddd`.
So it seems like the isV6Format function of node-ip has a bug.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with require('ip').isV6Format('dddd'), then inspect the isV6Format entry point and its address-validation logic. Compare the result with the referenced IPv6 validator and inet_pton behavior; done means the invalid input is rejected without breaking valid IPv6 address checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100