mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-23 09:48:05 +02:00
Merge branch 'feature/one-connection' into HEAD
This commit is contained in:
commit
b274809802
@ -696,6 +696,13 @@ void ApiListener::NewClientHandlerInternal(
|
||||
if (ctype == ClientJsonRpc) {
|
||||
Log(LogNotice, "ApiListener", "New JSON-RPC client");
|
||||
|
||||
if (endpoint && endpoint->GetConnected()) {
|
||||
Log(LogNotice, "ApiListener")
|
||||
<< "Ignoring JSON-RPC connection " << conninfo
|
||||
<< ". We're already connected to Endpoint '" << endpoint->GetName() << "'.";
|
||||
return;
|
||||
}
|
||||
|
||||
JsonRpcConnection::Ptr aclient = new JsonRpcConnection(identity, verify_ok, client, role);
|
||||
|
||||
if (endpoint) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user