mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-16 17:51:45 +02:00
configurable client ID
This commit is contained in:
parent
77bd32247a
commit
81f46ff41f
4 changed files with 22 additions and 11 deletions
|
@ -325,7 +325,12 @@ static std::string getHostId(const std::string defaultId = "")
|
|||
CFRelease(uuidCf);
|
||||
#elif ANDROID
|
||||
result = getProp("ro.serialno");
|
||||
#else
|
||||
std::ifstream infile("/var/lib/dbus/machine-id");
|
||||
if (infile.good())
|
||||
std::getline(infile, result);
|
||||
#endif
|
||||
strutils::trim(result);
|
||||
if (!result.empty())
|
||||
return result;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue