aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications')
-rw-r--r--OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs22
1 files changed, 18 insertions, 4 deletions
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
41 m_gridService = gridInterComms; 41 m_gridService = gridInterComms;
42 m_interRegion = gridInterComms; 42 m_interRegion = gridInterComms;
43 43
44 m_secureinventoryServices = new OGS1SecureInventoryService(serversInfo.InventoryURL); 44 if (serversInfo.secureInventoryServer)
45 OGS1InventoryService invService = new OGS1InventoryService(serversInfo.InventoryURL); 45 {
46 AddInventoryService(invService); 46 OGS1SecureInventoryService invService = new OGS1SecureInventoryService(serversInfo.InventoryURL);
47 m_defaultInventoryHost = invService.Host; 47 AddSecureInventoryService(invService);
48 m_defaultInventoryHost = invService.Host;
49 }
50 else
51 {
52 OGS1InventoryService invService = new OGS1InventoryService(serversInfo.InventoryURL);
53 AddInventoryService(invService);
54 m_defaultInventoryHost = invService.Host;
55 }
48 56
49 m_userService = new OGS1UserServices(this); 57 m_userService = new OGS1UserServices(this);
50 m_avatarService = (IAvatarService)m_userService; 58 m_avatarService = (IAvatarService)m_userService;
@@ -55,5 +63,11 @@ namespace OpenSim.Region.Communications.OGS1
55 OGS1InventoryService invService = new OGS1InventoryService(hostUrl); 63 OGS1InventoryService invService = new OGS1InventoryService(hostUrl);
56 AddInventoryService(invService); 64 AddInventoryService(invService);
57 } 65 }
66
67 public override void AddSecureInventoryService(string hostUrl)
68 {
69 OGS1SecureInventoryService invService = new OGS1SecureInventoryService(hostUrl);
70 AddSecureInventoryService(invService);
71 }
58 } 72 }
59} 73}