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

Incorrect mac address on macbook #149

Open
knapcio opened this issue Sep 21, 2020 · 2 comments
Open

Incorrect mac address on macbook #149

knapcio opened this issue Sep 21, 2020 · 2 comments

Comments

@knapcio
Copy link

knapcio commented Sep 21, 2020

Hi,

The library worked fine for me for a while (a week or two) and returned a correct mac address for my macbook. However today (possibly after I restarted my laptop) it started returning ac:de:48:00:11:22 which is, as mentioned in this topic, iBridge adapter address. Lib version: 5.16.0.

Thanks!

@balupton
Copy link
Member

A PR will be needed to address this, as I just don't have time. getmac is purely developed and maintained on a floss gratis basis.

Seems as it was fixed before, maybe the commit history will have some code for it.

@balupton
Copy link
Member

To elaborate

getmac v4 and higher have just been wrappers around https://nodejs.org/dist/latest-v12.x/docs/api/os.html#os_os_networkinterfaces

you should call that directly and see if it produces the results you need, then we can adapt this wrapper.

if that doesn't product the results you need, then you will need to file a bug report on the node.js issue tracker so they fix what that api returns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants