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

Wrong IPv6 returned #58

Open
julianxhokaxhiu opened this issue May 7, 2016 · 2 comments
Open

Wrong IPv6 returned #58

julianxhokaxhiu opened this issue May 7, 2016 · 2 comments

Comments

@julianxhokaxhiu
Copy link

julianxhokaxhiu commented May 7, 2016

NodeJS version: 6.0.0

JS Source:

ip.address( 'public', 'ipv6' ) // returns fe80::ad42:39c7:ff81:733

OS:

$ ip addr
ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> 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:

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 } ] }
*/
@danez
Copy link

danez commented Oct 25, 2016

This is probably related to #61 if you do private instead of public you should get the public address.

@julianxhokaxhiu
Copy link
Author

Any update on this?

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