diff options
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index b26cd6e..335c7e7 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -769,6 +769,7 @@ namespace OpenSim.Services.LLLoginService | |||
769 | if (account.ServiceURLs == null) | 769 | if (account.ServiceURLs == null) |
770 | return; | 770 | return; |
771 | 771 | ||
772 | // Old style: get the service keys from the DB | ||
772 | foreach (KeyValuePair<string, object> kvp in account.ServiceURLs) | 773 | foreach (KeyValuePair<string, object> kvp in account.ServiceURLs) |
773 | { | 774 | { |
774 | if (kvp.Value == null || (kvp.Value != null && kvp.Value.ToString() == string.Empty)) | 775 | if (kvp.Value == null || (kvp.Value != null && kvp.Value.ToString() == string.Empty)) |
@@ -780,6 +781,21 @@ namespace OpenSim.Services.LLLoginService | |||
780 | aCircuit.ServiceURLs[kvp.Key] = kvp.Value; | 781 | aCircuit.ServiceURLs[kvp.Key] = kvp.Value; |
781 | } | 782 | } |
782 | } | 783 | } |
784 | |||
785 | // New style: service keys start with SRV_; override the previous | ||
786 | string[] keys = m_LoginServerConfig.GetKeys(); | ||
787 | |||
788 | if (keys.Length > 0) | ||
789 | { | ||
790 | IEnumerable<string> serviceKeys = keys.Where(value => value.StartsWith("SRV_")); | ||
791 | foreach (string serviceKey in serviceKeys) | ||
792 | { | ||
793 | string keyName = serviceKey.Replace("SRV_", ""); | ||
794 | aCircuit.ServiceURLs[keyName] = m_LoginServerConfig.GetString(serviceKey, string.Empty); | ||
795 | m_log.DebugFormat("[LLLOGIN SERVICE]: found new key {0} {1}", keyName, aCircuit.ServiceURLs[keyName]); | ||
796 | } | ||
797 | } | ||
798 | |||
783 | } | 799 | } |
784 | 800 | ||
785 | private bool LaunchAgentDirectly(ISimulationService simConnector, GridRegion region, AgentCircuitData aCircuit, out string reason) | 801 | private bool LaunchAgentDirectly(ISimulationService simConnector, GridRegion region, AgentCircuitData aCircuit, out string reason) |