From 4dfda5a807955550c0a2bfd34f0a102ccafe5bc8 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 16 Jul 2015 18:51:59 +0200 Subject: [PATCH] Fixed ping command and one log event --- ICCC/HTTPConnector.go | 2 +- System/InitSystem.go | 2 +- System/Version/Variables.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ICCC/HTTPConnector.go b/ICCC/HTTPConnector.go index edf9d8f..a450751 100644 --- a/ICCC/HTTPConnector.go +++ b/ICCC/HTTPConnector.go @@ -56,7 +56,7 @@ func ICCCHandler(response http.ResponseWriter, request *http.Request) { if listener == nil { // Case: No such listener - Log.LogFull(senderName, LM.CategorySYSTEM, LM.LevelWARN, LM.SeverityCritical, LM.ImpactUnknown, LM.MessageNameCONFIGURATION, `Was not able to find the correct listener for these ICCC message.`, `channel=`+channel, `command`+command, `hostname=`+Tools.ThisHostname()) + Log.LogFull(senderName, LM.CategorySYSTEM, LM.LevelWARN, LM.SeverityCritical, LM.ImpactUnknown, LM.MessageNameCONFIGURATION, `Was not able to find the correct listener for these ICCC message.`, `channel=`+channel, `command=`+command, `hostname=`+Tools.ThisHostname()) http.NotFound(response, request) } else { // Case: Everything is fine => deliver the message and read the answer: diff --git a/System/InitSystem.go b/System/InitSystem.go index 795e270..fb601eb 100644 --- a/System/InitSystem.go +++ b/System/InitSystem.go @@ -105,7 +105,7 @@ func initSystem() { ICCC.Registrar(ICCC.ChannelICCC, `ICCC::DeleteListener`, ICCC.ICCCDeleteListenerReceiver) ICCC.Registrar(ICCC.ChannelICCC, `ICCC::DeleteHost`, ICCC.ICCCDeleteHostReceiver) ICCC.Registrar(ICCC.ChannelICCC, `ICCC::ListenerUpdate`, ICCC.ICCCListenerUpdateReceiver) - ICCC.Registrar(ICCC.ChannelICCC, `Ping::Ping`, ICCC.ICCCPingReceiver) + ICCC.Registrar(ICCC.ChannelPING, `Ping::Ping`, ICCC.ICCCPingReceiver) ICCC.Registrar(ICCC.ChannelSYSTEM, `System::Version`, ICCC.ICCCGetVersionReceiver) ICCC.Registrar(ICCC.ChannelICCC, `ICCC::GetHosts`, ICCC.ICCCGetHostsReceiver) ICCC.Registrar(ICCC.ChannelICCC, `ICCC::GetListeners`, ICCC.ICCCGetListenersReceiver) diff --git a/System/Version/Variables.go b/System/Version/Variables.go index 05567e5..c0c9aaa 100644 --- a/System/Version/Variables.go +++ b/System/Version/Variables.go @@ -1,5 +1,5 @@ package Version var ( - oceansVersion string = `2.0.5` // Ocean's current version + oceansVersion string = `2.0.6` // Ocean's current version )