mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
ApiListener#max_anonymous_clients: default to amount of endpoints x 2
This commit is contained in:
parent
a65f2d6b41
commit
fffb1e080f
1 changed files with 4 additions and 0 deletions
|
|
@ -310,6 +310,10 @@ void ApiListener::Start(bool runtimeCreated)
|
|||
m_ApiPackageIntegrityTimer->Start();
|
||||
|
||||
OnMasterChanged(true);
|
||||
|
||||
if (GetMaxAnonymousClients() < 0) {
|
||||
SetMaxAnonymousClients(ConfigType::GetObjectsByType<Endpoint>().size() * 2u, true);
|
||||
}
|
||||
}
|
||||
|
||||
void ApiListener::RenewOwnCert()
|
||||
|
|
|
|||
Loading…
Reference in a new issue