Wrong IPv6 returned
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 228
- PR merge metrics
- No merged PRs in 30d
Description
NodeJS version: 6.0.0
JS Source:
``` js
ip.address( 'public', 'ipv6' ) // returns fe80::ad42:39c7:ff81:733
```
OS:
``` zsh
$ ip addr
ens160: mtu 1500 qdisc fq_codel state UP group default qlen 1000
inet6 2003:6a:6808:3f01:64d6:e507:513e:71ec/64 scope global mngtmpaddr noprefixroute dynamic
```
I shortened the output just because the rest is not important :)
Thank you in advance!
---
Updated NodeJS to max ( actually 6.1.0 ) still the same error.
I attach also the native output of NodeJS:
``` js
console.log( require('os').networkInterfaces() );
/*
ens160:
[ ...
{ address: '2003:6a:6808:3f01:64d6:e507:513e:71ec',
netmask: 'ffff:ffff:ffff:ffff::',
family: 'IPv6',
mac: 'xxx',
scopeid: 0,
internal: false },
{ address: 'fe80::ad42:39c7:ff81:733',
netmask: 'ffff:ffff:ffff:ffff::',
family: 'IPv6',
mac: 'xxx',
scopeid: 2,
internal: false } ] }
*/
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce ip.address('public', 'ipv6') using the interface data shown in the issue and compare it with Node's os.networkInterfaces() output. Trace how the public IPv6 address is selected; done means the call returns the global address 2003:6a:6808:3f01:64d6:e507:513e:71ec rather than the fe80:: link-local address.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100