mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Added option to userserver config, to be able disable/enable the LLSD Login support. As far as I know, the LLSD login method is currently only used by libsl based clients/bots. So could be useful to be able to disable this if a grid comes under a griefing attack from libsl bots.
This commit is contained in:
@@ -49,6 +49,8 @@ namespace OpenSim.Framework
|
||||
public bool HttpSSL = DefaultHttpSSL;
|
||||
public string InventoryUrl = String.Empty;
|
||||
|
||||
public bool EnableLLSDLogin = true;
|
||||
|
||||
public UserConfig()
|
||||
{
|
||||
// weird, but UserManagerBase needs this.
|
||||
@@ -93,6 +95,8 @@ namespace OpenSim.Framework
|
||||
"Known good region X", "1000", false);
|
||||
configMember.addConfigurationOption("default_Y", ConfigurationOption.ConfigurationTypes.TYPE_UINT32,
|
||||
"Known good region Y", "1000", false);
|
||||
configMember.addConfigurationOption("enable_llsd_login", ConfigurationOption.ConfigurationTypes.TYPE_BOOLEAN,
|
||||
"Enable LLSD login support? true/false", true.ToString(), false);
|
||||
}
|
||||
|
||||
public bool handleIncomingConfiguration(string configuration_key, object configuration_result)
|
||||
@@ -132,6 +136,9 @@ namespace OpenSim.Framework
|
||||
case "default_Y":
|
||||
DefaultY = (uint) configuration_result;
|
||||
break;
|
||||
case "enable_llsd_login":
|
||||
EnableLLSDLogin = (bool)configuration_result;
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user