Add username/password to Hello message

This commit is contained in:
badaix 2025-02-06 21:11:38 +01:00 committed by Johannes Pohl
parent b566b42ee0
commit 080b7a809b
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
{