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

return 00:00:00:00:00:00 sometimes #22

Closed
ihabhamad opened this issue Sep 15, 2018 · 4 comments
Closed

return 00:00:00:00:00:00 sometimes #22

ihabhamad opened this issue Sep 15, 2018 · 4 comments
Labels

Comments

@ihabhamad
Copy link

my friend if i used .all function sometimes return to me 00:00:00:00:00:00 on some users

@djedlajn
Copy link

djedlajn commented May 2, 2019

This should be an issue with libuv c++ library. I think that patch has landed.

@osenvosem
Copy link

The module always returns zeroes on all interfaces on macOs.

{ en0:
     { ipv6: 'fe80::100f:5aa3:96e0:937',
       mac: '00:00:00:00:00:00',
       ipv4: '10.1.1.83' },
    awdl0:
     { ipv6: 'fe80::5c42:d3ff:fe9c:b379', mac: '00:00:00:00:00:00' },
    utun0:
     { ipv6: 'fe80::26d7:ed97:caf4:3d91', mac: '00:00:00:00:00:00' } }

@sheshnath08
Copy link

I was able to fix this issue by changing this if the condition on line https://github.com/scravy/node-macaddress/blob/master/index.js#L134 to
if (!ifaces[iface].mac || ifaces[iface].mac === '00:00:00:00:00:00')

@scravy scravy closed this as completed in ca9e24d May 4, 2020
scravy added a commit that referenced this issue May 4, 2020
@scravy
Copy link
Owner

scravy commented May 4, 2020

@sheshnath08 I have incorporated the check for a mac address comprised of all zeroes in 0f329b4, has been released along v0.4.3

@scravy scravy added the fixed label May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants