mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Add a ServiceList section to Robust .ini to get rid of the long string
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user