mirror of https://github.com/Icinga/icinga2.git
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())
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue