You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
I made some tests and noticed that "x = require('os').networkInterfaces();" won't list interfaces that never had network traffic since machine boot. When a cable is plugged into that network interface, it is listed back again.
Shouldn't network interfaces be listed in networkInterfaces() regardless network traffic ?
Actually the problem is not caused because the network interface has never had network traffic since boot. The problem happens if the network interface does not have network carrier (network cable plugged).
But I still understand that network interfaces should be listed regardless it has network carrier or not.
I think it makes sense to only show "active" network interfaces, but in some cases it would be needed to list all available ones, so networkInterfaces() would accept a boolean argument to show all of them and it could still be backward compatible...
node v0.10.33 is not listing eth0 when require('os').networkInterfaces is called.
More details:
It works ok if eth0 is the only interface in the machine.
The text was updated successfully, but these errors were encountered: