mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 04:11:50 +02:00
Android hostname uses ro.product.model as fallback
This commit is contained in:
parent
aa3ce3d5ab
commit
73e42f69cb
2 changed files with 4 additions and 1 deletions
|
@ -124,6 +124,9 @@ static std::string getHostName()
|
|||
std::string result = getProp("net.hostname");
|
||||
if (!result.empty())
|
||||
return result;
|
||||
result = getProp("ro.product.model");
|
||||
if (!result.empty())
|
||||
return result;
|
||||
#endif
|
||||
char hostname[1024];
|
||||
hostname[1023] = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue