Open tomas-reznak opened 1 year ago
systeminformation.networkInterfaces() is using os.networkInterfaces() to get interfaces, but nodejs os function doesn't return all interfaces (according to documentation should return all interfaces with IP set, but this is not true)
For Linux maybe it would be better to check all devices in /sys/class/net, not sure about other systems.
Hello, is there any progress on this?
Describe the bug
When trying to get list of all network interfaces on the laptop,
si.networkInterfaces(cb)
doesn't return all of them. I know about older similar issues, but this is some kind of special behavior which could be investigated.To Reproduce
My laptop uses:
When internal interface is set as Disabled (via Windows Control Panel),
si.networkInterfaces(cb)
returns both interfaces correctly.When internal interface is set as Enabled,
si.networkInterfaces(cb)
returns this interface only.Current Output
When internal network interface is set as Enabled, it returns just this interface:
When using
ipconfig -all
, both interfaces are returned correctly:Expected behavior
After fixing this bug, both interfaces (with some others, which I skipped for simplicity) should be returned as this:
Environment (please complete the following information):
Additional context Add any other context about the problem here.