indutny / indutny/node-ip

Multiple addresses support

Open
#70 0 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.5k
Forks
228
PR merge metrics
No merged PRs in 30d

Description

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).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the current address function in the node-ip implementation and inspect how it selects an address from an interface's address list. Use the multi-address eth0 example in the issue as the reproduction case. Done means callers can retrieve both IPv4 addresses, while preserving the existing interface information and behavior for single-address configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
networking
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.