Skip to content

Wrong IPv6 returned #58

@julianxhokaxhiu

Description

@julianxhokaxhiu

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 } ] }
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions