From 3fb4a17f1044f5bd995f703233f656f72ebe5269 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Wed, 8 Sep 2010 11:30:38 -0700 Subject: No need for a config var for the HELO message on the server-side. It's robust. --- OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'OpenSim/Server/Handlers') diff --git a/OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs b/OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs index 3b25a52..6c83aff 100644 --- a/OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs +++ b/OpenSim/Server/Handlers/Hypergrid/HeloServerConnector.cs @@ -41,17 +41,10 @@ namespace OpenSim.Server.Handlers.Hypergrid { public class HeloServiceConnector : ServiceConnector { - private string m_ConfigName = "HeloService"; - public HeloServiceConnector(IConfigSource config, IHttpServer server, string configName) : base(config, server, configName) { - IConfig serverConfig = config.Configs[m_ConfigName]; - if (serverConfig == null) - throw new Exception(String.Format("No section {0} in config file", m_ConfigName)); - - string handlers = serverConfig.GetString("Handlers", "opensim-robust"); - server.AddStreamHandler(new HeloServerGetHandler(handlers)); + server.AddStreamHandler(new HeloServerGetHandler("opensim-robust")); } } -- cgit v1.1