From ce4bcb50655e69277eac64a6d3ab520d669e6b70 Mon Sep 17 00:00:00 2001 From: Johan Berntsson Date: Wed, 23 Jul 2008 09:46:04 +0000 Subject: The new secure inventory server mode (in r5590) can now be disabled from OpenSim.ini. Default is to use the new mode. --- OpenSim/Region/Application/OpenSimBase.cs | 1 + .../Communications/OGS1/CommunicationsOGS1.cs | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 05e4f46..6889a61 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -254,6 +254,7 @@ namespace OpenSim config.Set("user_recv_key", "null"); config.Set("asset_server_url", "http://127.0.0.1:" + AssetConfig.DefaultHttpPort.ToString()); config.Set("inventory_server_url", "http://127.0.0.1:" + InventoryConfig.DefaultHttpPort.ToString()); + config.Set("secure_inventory_server", "true"); } if (DefaultConfig.Configs["RemoteAdmin"] == null) diff --git a/OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs b/OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs index a6ea128..1926e79 100644 --- a/OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs +++ b/OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs @@ -41,10 +41,18 @@ namespace OpenSim.Region.Communications.OGS1 m_gridService = gridInterComms; m_interRegion = gridInterComms; - m_secureinventoryServices = new OGS1SecureInventoryService(serversInfo.InventoryURL); - OGS1InventoryService invService = new OGS1InventoryService(serversInfo.InventoryURL); - AddInventoryService(invService); - m_defaultInventoryHost = invService.Host; + if (serversInfo.secureInventoryServer) + { + OGS1SecureInventoryService invService = new OGS1SecureInventoryService(serversInfo.InventoryURL); + AddSecureInventoryService(invService); + m_defaultInventoryHost = invService.Host; + } + else + { + OGS1InventoryService invService = new OGS1InventoryService(serversInfo.InventoryURL); + AddInventoryService(invService); + m_defaultInventoryHost = invService.Host; + } m_userService = new OGS1UserServices(this); m_avatarService = (IAvatarService)m_userService; @@ -55,5 +63,11 @@ namespace OpenSim.Region.Communications.OGS1 OGS1InventoryService invService = new OGS1InventoryService(hostUrl); AddInventoryService(invService); } + + public override void AddSecureInventoryService(string hostUrl) + { + OGS1SecureInventoryService invService = new OGS1SecureInventoryService(hostUrl); + AddSecureInventoryService(invService); + } } } -- cgit v1.1