aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/LLLoginService/LLLoginService.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-07-21 23:53:33 +0100
committerJustin Clark-Casey2014-08-02 00:57:43 +0100
commit92e24780597322e58631abd9b9e3494ee3266996 (patch)
tree4848c3a974d3eb4ca1c7ad892949c8aa90c07ace /OpenSim/Services/LLLoginService/LLLoginService.cs
parentminor: Limit processor related stats to 3 decimal places instead of all the p... (diff)
downloadopensim-SC_OLD-92e24780597322e58631abd9b9e3494ee3266996.zip
opensim-SC_OLD-92e24780597322e58631abd9b9e3494ee3266996.tar.gz
opensim-SC_OLD-92e24780597322e58631abd9b9e3494ee3266996.tar.bz2
opensim-SC_OLD-92e24780597322e58631abd9b9e3494ee3266996.tar.xz
On login and first HG entrance to a foreign grid, perform query access checks before proceeding.
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginService.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs
index 5888cce..264a630 100644
--- a/OpenSim/Services/LLLoginService/LLLoginService.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginService.cs
@@ -959,12 +959,19 @@ namespace OpenSim.Services.LLLoginService
959 959
960 private bool LaunchAgentDirectly(ISimulationService simConnector, GridRegion region, AgentCircuitData aCircuit, TeleportFlags flags, out string reason) 960 private bool LaunchAgentDirectly(ISimulationService simConnector, GridRegion region, AgentCircuitData aCircuit, TeleportFlags flags, out string reason)
961 { 961 {
962 string version;
963
964 if (!simConnector.QueryAccess(region, aCircuit.AgentID, null, true, aCircuit.startpos, null, out version, out reason))
965 return false;
966
962 return simConnector.CreateAgent(null, region, aCircuit, (uint)flags, out reason); 967 return simConnector.CreateAgent(null, region, aCircuit, (uint)flags, out reason);
963 } 968 }
964 969
965 private bool LaunchAgentIndirectly(GridRegion gatekeeper, GridRegion destination, AgentCircuitData aCircuit, IPEndPoint clientIP, out string reason) 970 private bool LaunchAgentIndirectly(GridRegion gatekeeper, GridRegion destination, AgentCircuitData aCircuit, IPEndPoint clientIP, out string reason)
966 { 971 {
967 m_log.Debug("[LLOGIN SERVICE] Launching agent at " + destination.RegionName); 972 string version;
973
974 m_log.Debug("[LLOGIN SERVICE]: Launching agent at " + destination.RegionName);
968 if (m_UserAgentService.LoginAgentToGrid(null, aCircuit, gatekeeper, destination, true, out reason)) 975 if (m_UserAgentService.LoginAgentToGrid(null, aCircuit, gatekeeper, destination, true, out reason))
969 return true; 976 return true;
970 return false; 977 return false;