mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-16 18:46:15 +02:00
improve unique host ID creation
This commit is contained in:
parent
fa3f78b08d
commit
5bf78eb874
5 changed files with 22 additions and 8 deletions
|
@ -467,7 +467,7 @@ void StreamServer::onMessageReceived(StreamSession* connection, const msg::BaseM
|
|||
{
|
||||
msg::Hello helloMsg;
|
||||
helloMsg.deserialize(baseMessage, buffer);
|
||||
connection->clientId = helloMsg.getClientId();
|
||||
connection->clientId = helloMsg.getUniqueId();
|
||||
logO << "Hello from " << connection->clientId << ", host: " << helloMsg.getHostName() << ", v" << helloMsg.getVersion()
|
||||
<< ", ClientName: " << helloMsg.getClientName() << ", OS: " << helloMsg.getOS() << ", Arch: " << helloMsg.getArch()
|
||||
<< ", Protocol version: " << helloMsg.getProtocolVersion() << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue