mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-03 20:26:38 +02:00
Check for MacOS iBridge MAC address and fall back
This commit is contained in:
parent
66c5331b46
commit
a30ac29fb4
1 changed files with 5 additions and 3 deletions
|
@ -421,9 +421,11 @@ static std::string getHostId(const std::string defaultId = "")
|
||||||
{
|
{
|
||||||
std::string result = strutils::trim_copy(defaultId);
|
std::string result = strutils::trim_copy(defaultId);
|
||||||
|
|
||||||
/// the Android API will return "02:00:00:00:00:00" for WifiInfo.getMacAddress().
|
if (!result.empty() // default provided
|
||||||
/// Maybe this could also happen with native code
|
&& (result != "00:00:00:00:00:00") // default mac returned by getMaxAddress if it fails
|
||||||
if (!result.empty() && (result != "02:00:00:00:00:00") && (result != "00:00:00:00:00:00"))
|
&& (result != "02:00:00:00:00:00") // the Android API will return "02:00:00:00:00:00" for WifiInfo.getMacAddress()
|
||||||
|
&& (result != "ac:de:48:00:11:22") // iBridge interface on new MacBook Pro (later 2016)
|
||||||
|
)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
#ifdef MACOS
|
#ifdef MACOS
|
||||||
|
|
Loading…
Add table
Reference in a new issue