-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
os.networkInterfaces() returns wrong MAC addresses #13581
Comments
fix a wrong `if` in `uv_interface_address` about MAC. Fixes: nodejs/node#13581 Fixes: libuv#829
I've created a PR for this bug in libuv. After that PR done, we can upgrade libuv in Node.js. |
Thanks a lot! |
On CentOS 7.2, node 8.0.0 and every 7.x version I have tried works fine. However, when switching to node 8.1.0 the MAC addresses are wrong and always begin with 00:00:00:00:xx:xx. I have reproduced this with two fresh installs in VMware on two different hosts. Is there any other way I can help with this? |
@oxygen Yes, This bug appears on the newer version of libuv. Node.js 8.x failed because of the updating of libuv. And I've already create a PR to fix this issue on libuv (libuv/libuv#1375). After that PR done, we can upgrade libuv in Node.js. Maybe you can give some suggest to that PR. |
fix a wrong `if` in `uv_interface_address` about MAC. Fixes: nodejs/node#13581
Reopening because the fix only landed in libuv. |
@bnoordhuis Shall I wait for new version of libuv releases, or just patch the bugfix code into Node.js master? |
Just wait for the upgrade, we never float libuv patches. |
#14866 will fix this issue. (via libuv/libuv@f1e0fc4) |
Fixes: nodejs#12737 Fixes: nodejs#13581 Fixes: nodejs#15117 PR-URL: nodejs#14866 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
os.networkInterfaces()
returns wrong MAC addresses.Running the following code
I get the following output
This a small tabble with some experiments I did playing with node versions and platforms
I'm no expert of nodejs core, but my feeleing is that maybe libuv returns a wrong MAC address... Is it maybe related to libuv/libuv#829 ?
Thanks for your help, and all the hard work you're doing!
Kind regards,
M.
The text was updated successfully, but these errors were encountered: