mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
Bugfix for the welcome message.
This commit is contained in:
parent
9b86c7f35f
commit
a582b2c191
@ -484,7 +484,9 @@ void DiscoveryComponent::ProcessDiscoveryMessage(string identity, DiscoveryMessa
|
|||||||
if (IsBroker())
|
if (IsBroker())
|
||||||
SendDiscoveryMessage("discovery::NewComponent", identity, Endpoint::Ptr());
|
SendDiscoveryMessage("discovery::NewComponent", identity, Endpoint::Ptr());
|
||||||
|
|
||||||
if (endpoint)
|
/* don't send a welcome message for discovery::RegisterComponent
|
||||||
|
messages unless we're a broker */
|
||||||
|
if (endpoint && (trusted || IsBroker()))
|
||||||
FinishDiscoverySetup(endpoint);
|
FinishDiscoverySetup(endpoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user