Add a ServiceList section to Robust .ini to get rid of the long string
parent
90a39379f0
commit
ff92330523
|
@ -60,6 +60,24 @@ namespace OpenSim.Server
|
|||
}
|
||||
|
||||
string connList = serverConfig.GetString("ServiceConnectors", String.Empty);
|
||||
|
||||
IConfig servicesConfig = m_Server.Config.Configs["ServiceList"];
|
||||
if (servicesConfig != null)
|
||||
{
|
||||
List<string> servicesList = new List<string>();
|
||||
if (connList != String.Empty)
|
||||
servicesList.Add(connList);
|
||||
|
||||
foreach (string k in servicesConfig.GetKeys())
|
||||
{
|
||||
string v = servicesConfig.GetString(k);
|
||||
if (v != String.Empty)
|
||||
servicesList.Add(v);
|
||||
}
|
||||
|
||||
connList = servicesConfig.Join(",");
|
||||
}
|
||||
|
||||
string[] conns = connList.Split(new char[] {',', ' ', '\n', '\r', '\t'});
|
||||
|
||||
// int i = 0;
|
||||
|
|
Loading…
Reference in New Issue