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

Multiple addresses support #70

Open
MaciejBaj opened this issue Jan 23, 2017 · 0 comments · May be fixed by #71
Open

Multiple addresses support #70

MaciejBaj opened this issue Jan 23, 2017 · 0 comments · May be fixed by #71

Comments

@MaciejBaj
Copy link

MaciejBaj commented Jan 23, 2017

With the current implementation of address function, there is no possibility to retrieve multiple addresses assign to the interface. For configuration like this:

eth0: 
   [ { address: '10.0.2.15',
       netmask: '255.255.255.0',
       family: 'IPv4',
       mac: '08:00:27:88:0c:a6',
       internal: false },
     { address: '10.0.2.16',
       netmask: '255.255.255.0',
       family: 'IPv4',
       mac: '08:00:27:88:0c:a6',
       internal: false },
     { address: 'fe80::a00:27ff:fe88:ca6',
       netmask: 'ffff:ffff:ffff:ffff::',
       family: 'IPv6',
       mac: '08:00:27:88:0c:a6',
       scopeid: 2,
       internal: false } ] }

there is no possibility to gather both assign addresses (10.0.2.15 and 10.0.2.16).

MaciejBaj added a commit to MaciejBaj/node-ip that referenced this issue Jan 23, 2017
Extend 'address' function so it can be used to return all interface addresses.

closes indutny#70.
@MaciejBaj MaciejBaj linked a pull request Jan 23, 2017 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant