Add username/password to Hello message

This commit is contained in:
badaix 2025-02-06 21:11:38 +01:00
parent 3cb2b4dd93
commit 49d6d1c58f
6 changed files with 40 additions and 4 deletions

View file

@ -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
{