mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 09:04:35 +02:00
Merge pull request #7747 from Icinga/bugfix/heartbeat-unauthenticated-7746
Don't send event::Heartbeat to unauthenticated peers
This commit is contained in:
commit
bf2d6abfad
@ -36,6 +36,7 @@ void JsonRpcConnection::HandleAndWriteHeartbeats(boost::asio::yield_context yc)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_Endpoint) {
|
||||||
SendMessageInternal(new Dictionary({
|
SendMessageInternal(new Dictionary({
|
||||||
{ "jsonrpc", "2.0" },
|
{ "jsonrpc", "2.0" },
|
||||||
{ "method", "event::Heartbeat" },
|
{ "method", "event::Heartbeat" },
|
||||||
@ -45,6 +46,7 @@ void JsonRpcConnection::HandleAndWriteHeartbeats(boost::asio::yield_context yc)
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Value JsonRpcConnection::HeartbeatAPIHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)
|
Value JsonRpcConnection::HeartbeatAPIHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user