mirror of https://github.com/Icinga/icinga2.git
cluster: Don't allow wildcards in endpoint names.
This commit is contained in:
parent
83ca372fa8
commit
28a6db4e81
components/cluster
|
@ -1386,7 +1386,7 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction
|
||||||
if (acceptConfig) {
|
if (acceptConfig) {
|
||||||
ObjectLock olock(acceptConfig);
|
ObjectLock olock(acceptConfig);
|
||||||
BOOST_FOREACH(const String& pattern, acceptConfig) {
|
BOOST_FOREACH(const String& pattern, acceptConfig) {
|
||||||
if (Utility::Match(pattern, sender->GetName())) {
|
if (pattern == sender->GetName()) {
|
||||||
accept = true;
|
accept = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1485,7 +1485,7 @@ bool ClusterComponent::IsAuthority(const DynamicObject::Ptr& object, const Strin
|
||||||
if (authorities) {
|
if (authorities) {
|
||||||
ObjectLock olock(authorities);
|
ObjectLock olock(authorities);
|
||||||
BOOST_FOREACH(const String& authority, authorities) {
|
BOOST_FOREACH(const String& authority, authorities) {
|
||||||
if (Utility::Match(authority, endpoint->GetName())) {
|
if (authority == endpoint->GetName()) {
|
||||||
match = true;
|
match = true;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue