No need for a config var for the HELO message on the server-side. It's robust.
parent
904d6b787a
commit
3fb4a17f10
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue