IPV4 followed by colon and port number are getting recognized as IPV6
Open
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 228
- PR merge metrics
- No merged PRs in 30d
Description
IPV4 addresses followed by a colon and port number are recognized as IPV6 addresses.
For eg:
var ip = require("ip")
var newAdd = '198.0.3.126:8043';
if(ip.isV4Format(newAdd)){
console.log('v4');
}
if(ip.isV6Format(newAdd)) {
console.log('v6');
}
OUTPUT:
v6
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the Node.js reproduction from the issue and inspect the isV4Format and isV6Format entry points. The work is done when an IPv4 address followed by a colon and port is no longer recognized as IPv6, with coverage for the reported example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100