mirror of https://github.com/Icinga/icinga2.git
ApiListener: send icinga::Hello message
This commit is contained in:
parent
49ac7777e0
commit
48b5824e37
|
@ -626,7 +626,17 @@ void ApiListener::NewClientHandlerInternal(boost::asio::yield_context yc, const
|
|||
|
||||
ClientType ctype;
|
||||
|
||||
if (role != RoleClient) {
|
||||
if (role == RoleClient) {
|
||||
JsonRpc::SendMessage(client, new Dictionary({
|
||||
{ "jsonrpc", "2.0" },
|
||||
{ "method", "icinga::Hello" },
|
||||
{ "params", new Dictionary() }
|
||||
}), yc);
|
||||
|
||||
client->async_flush(yc);
|
||||
|
||||
ctype = ClientJsonRpc;
|
||||
} else {
|
||||
{
|
||||
boost::system::error_code ec;
|
||||
|
||||
|
|
Loading…
Reference in New Issue