disable coreprofiles if ProfileServiceURL is not set

This commit is contained in:
UbitUmarov
2020-10-01 03:13:54 +01:00
parent bc1ea2ef3a
commit ae79ebc48d
2 changed files with 5 additions and 2 deletions

View File

@@ -300,6 +300,11 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
// If we find ProfileURL then we configure for FULL support
// else we setup for BASIC support
ProfileServerUri = profileConfig.GetString("ProfileServiceURL", "");
if (string.IsNullOrEmpty(ProfileServerUri))
{
Enabled = false;
return;
}
OSHTTPURI tmp = new OSHTTPURI(ProfileServerUri, true);
if (!tmp.IsResolvedHost)