No need for a config var for the HELO message on the server-side. It's robust.

viewer-2-initial-appearance
Diva Canto 2010-09-08 11:30:38 -07:00
parent 904d6b787a
commit 3fb4a17f10
1 changed files with 1 additions and 8 deletions

View File

@ -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"));
}
}