mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-14 00:31:44 +02:00
Add username/password to Hello message
This commit is contained in:
parent
3cb2b4dd93
commit
49d6d1c58f
6 changed files with 40 additions and 4 deletions
|
@ -454,7 +454,7 @@ void Controller::worker()
|
|||
settings_.host_id = ::getHostId(macAddress);
|
||||
|
||||
// Say hello to the server
|
||||
auto hello = std::make_shared<msg::Hello>(macAddress, settings_.host_id, settings_.instance);
|
||||
auto hello = std::make_shared<msg::Hello>(macAddress, settings_.host_id, settings_.instance, settings_.server.username, settings_.server.password);
|
||||
clientConnection_->sendRequest<msg::ServerSettings>(
|
||||
hello, 2s, [this](const boost::system::error_code& ec, std::unique_ptr<msg::ServerSettings> response) mutable
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue