mirror of
https://github.com/opensim/opensim.git
synced 2026-07-18 05:35:36 +08:00
Mantis #6552 -- stricter error (crash) if server URL is malformed.
This commit is contained in:
@@ -74,11 +74,8 @@ namespace OpenSim.Groups
|
||||
{
|
||||
IConfig groupsConfig = config.Configs["Groups"];
|
||||
string url = groupsConfig.GetString("GroupsServerURI", string.Empty);
|
||||
if (url == string.Empty)
|
||||
{
|
||||
m_log.WarnFormat("[Groups.RemoteConnector]: Groups server URL not provided. Groups will not work.");
|
||||
return;
|
||||
}
|
||||
if (!Uri.IsWellFormedUriString(url, UriKind.Absolute))
|
||||
throw new Exception(string.Format("[Groups.RemoteConnector]: Malformed groups server URL {0}. Fix it or disable the Groups feature.", url));
|
||||
|
||||
m_GroupsService = new GroupsServiceRemoteConnector(url);
|
||||
m_Scenes = new List<Scene>();
|
||||
|
||||
Reference in New Issue
Block a user