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

high sierra: mac does not change in "Network Utility" #29

Closed
helinwang opened this issue Jan 26, 2018 · 1 comment
Closed

high sierra: mac does not change in "Network Utility" #29

helinwang opened this issue Jan 26, 2018 · 1 comment

Comments

@helinwang
Copy link

helinwang commented Jan 26, 2018

Thanks for the project. The UI is really minimal and nice.

ifconfig en0 |grep ether do show changed mac address. However "Network Utility" still shows the original mac address.

The same thing happens when trying to set the mac manually using command line as well:

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z
sudo ifconfig en0 ether xxx
networksetup -detectnewhardware
@halo
Copy link
Owner

halo commented Jan 26, 2018

Hi! Thank you for your kind words!

The behavior you describe is normal. If you look at your interface via System Preferences -> Network, you will always see the original hardware MAC address (see screenshot below). Only ifconfig will tell you which MAC address is actually used for traffic leaving your computer. It's always been like that in macOS.

screen shot 2018-01-26 at 09 17 58

In fact, even when I query the interfaces using the official operating system API in Swift, I will still only get the original hardware-MAC and not the changed soft-MAC. That's why LinkLiar needs to shell out and run ifconfig in a thread to find out the current address for displaying it in the menu bar.

I'll close this issue for now but I added a comment about this in the README. Let me know if you have further thoughts, suggestions or questions.

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