HGAssetService searches for the "HomeURI" setting in several sections: Startup, Hypergrid, HGAssetService

Resolves http://opensimulator.org/mantis/view.php?id=6940
0.8.0.3
Oren Hurvitz 2013-10-31 11:17:28 +02:00
parent 8cec0b3fa1
commit 0ff61341e4
1 changed files with 4 additions and 4 deletions

View File

@ -76,10 +76,10 @@ namespace OpenSim.Services.HypergridService
if (m_UserAccountService == null)
throw new Exception(String.Format("Unable to create UserAccountService from {0}", userAccountsDll));
// legacy configuration [obsolete]
m_HomeURL = assetConfig.GetString("ProfileServerURI", string.Empty);
// Preferred
m_HomeURL = assetConfig.GetString("HomeURI", m_HomeURL);
m_HomeURL = Util.GetConfigVarFromSections<string>(config, "HomeURI",
new string[] { "Startup", "Hypergrid", configName }, string.Empty);
if (m_HomeURL == string.Empty)
throw new Exception("[HGAssetService] No HomeURI specified");
m_Cache = UserAccountCache.CreateUserAccountCache(m_UserAccountService);