From a60c7cd2a34baf64d03eac9bd6535abba6954051 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 23 Apr 2012 14:06:13 +0200 Subject: [PATCH] Updated test config. --- components/demo/democomponent.cpp | 4 +++- icinga-app/icinga.conf | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/demo/democomponent.cpp b/components/demo/democomponent.cpp index 053cd3b24..31967a677 100644 --- a/components/demo/democomponent.cpp +++ b/components/demo/democomponent.cpp @@ -15,7 +15,8 @@ string DemoComponent::GetName(void) const void DemoComponent::Start(void) { m_DemoEndpoint = make_shared(); - m_DemoEndpoint->RegisterMethodHandler("demo::HelloWorld", bind_weak(&DemoComponent::HelloWorldRequestHAndler, shared_from_this())); + m_DemoEndpoint->RegisterMethodHandler("demo::HelloWorld", + bind_weak(&DemoComponent::HelloWorldRequestHAndler, shared_from_this())); m_DemoEndpoint->RegisterMethodSource("demo::HelloWorld"); EndpointManager::Ptr endpointManager = GetIcingaApplication()->GetEndpointManager(); @@ -42,6 +43,7 @@ void DemoComponent::Stop(void) int DemoComponent::NewEndpointHandler(const NewEndpointEventArgs& neea) { + /* Allow sending/receiving demo messages without authentication */ neea.Endpoint->AddAllowedMethodSinkPrefix("demo::"); neea.Endpoint->AddAllowedMethodSourcePrefix("demo::"); diff --git a/icinga-app/icinga.conf b/icinga-app/icinga.conf index 440c71715..6af0fa60f 100644 --- a/icinga-app/icinga.conf +++ b/icinga-app/icinga.conf @@ -6,9 +6,6 @@ "rpclistener": { "kekslistener": { "replicate": "0", "port": "7777" } }, - "rpcconnection": { - "keksclient": { "replicate": "0", "hostname": "localhost", "port": "7777" } - }, "host": { "localhost": { "ipaddr": "127.0.0.1" } } -- 2.40.0