mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
No need for a config var for the HELO message on the server-side. It's robust.
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user