Skip to content

Conversation

@samuelzamvil
Copy link
Contributor

Changes

  • Fixed MAC address resolution for macOS Sequoia+ to correctly handle private Wi-Fi addresses by introducing a platform-specific check for macOS with release version 24 or higher.
  • Added a new module for macOS (getmacaddress_darwin.js) to resolve MAC addresses using the networksetup utility.

Affected Files

  • index.js
  • lib/getmacaddress.js
  • lib/platform/getmacaddress_darwin.js

Changes
* Fixed MAC address resolution for macOS Sequoia+ to correctly handle private Wi-Fi addresses by introducing a platform-specific check for macOS with release version 24 or higher.
* Added a new module for macOS (`getmacaddress_darwin.js`) to resolve MAC addresses using the `networksetup` utility.

Affected Files
* `index.js`
* `lib/getmacaddress.js`
* `lib/platform/getmacaddress_darwin.js`
…s module and running getmacaddress if on macOS Sequoia+. This fixed all the issues of returning the wrong mac address when testing test.js.
@scravy scravy self-requested a review December 28, 2025 19:04
@scravy scravy self-assigned this Dec 28, 2025
@scravy
Copy link
Owner

scravy commented Dec 28, 2025

Thank you very much for the patch @samuelzamvil – merging this a year later 🤦

@scravy scravy merged commit 63274dc into scravy:main Dec 28, 2025
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

Successfully merging this pull request may close these issues.

2 participants