diff options
author | Diva Canto | 2011-12-21 14:56:38 -0800 |
---|---|---|
committer | Diva Canto | 2011-12-21 14:56:38 -0800 |
commit | 651f9f47d0dec64e70bc257f4695313fad839b7a (patch) | |
tree | 6c89989190e9f203dc18b03f8e0ddc4efc18af36 /OpenSim/Services/HypergridService | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-651f9f47d0dec64e70bc257f4695313fad839b7a.zip opensim-SC-651f9f47d0dec64e70bc257f4695313fad839b7a.tar.gz opensim-SC-651f9f47d0dec64e70bc257f4695313fad839b7a.tar.bz2 opensim-SC-651f9f47d0dec64e70bc257f4695313fad839b7a.tar.xz |
HG: Verify that the user is local
Diffstat (limited to 'OpenSim/Services/HypergridService')
-rw-r--r-- | OpenSim/Services/HypergridService/UserAgentService.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Services/HypergridService/UserAgentService.cs b/OpenSim/Services/HypergridService/UserAgentService.cs index cdc560c..8538660 100644 --- a/OpenSim/Services/HypergridService/UserAgentService.cs +++ b/OpenSim/Services/HypergridService/UserAgentService.cs | |||
@@ -161,6 +161,14 @@ namespace OpenSim.Services.HypergridService | |||
161 | { | 161 | { |
162 | m_log.DebugFormat("[USER AGENT SERVICE]: Request to login user {0} {1} (@{2}) to grid {3}", | 162 | m_log.DebugFormat("[USER AGENT SERVICE]: Request to login user {0} {1} (@{2}) to grid {3}", |
163 | agentCircuit.firstname, agentCircuit.lastname, ((clientIP == null) ? "stored IP" : clientIP.Address.ToString()), gatekeeper.ServerURI); | 163 | agentCircuit.firstname, agentCircuit.lastname, ((clientIP == null) ? "stored IP" : clientIP.Address.ToString()), gatekeeper.ServerURI); |
164 | |||
165 | if (m_UserAccountService.GetUserAccount(UUID.Zero, agentCircuit.AgentID) == null) | ||
166 | { | ||
167 | m_log.WarnFormat("[USER AGENT SERVICE]: Someone attempted to lauch a foreign user from here {0} {1}", agentCircuit.firstname, agentCircuit.lastname); | ||
168 | reason = "Forbidden to launch your agents from here"; | ||
169 | return false; | ||
170 | } | ||
171 | |||
164 | // Take the IP address + port of the gatekeeper (reg) plus the info of finalDestination | 172 | // Take the IP address + port of the gatekeeper (reg) plus the info of finalDestination |
165 | GridRegion region = new GridRegion(gatekeeper); | 173 | GridRegion region = new GridRegion(gatekeeper); |
166 | region.ServerURI = gatekeeper.ServerURI; | 174 | region.ServerURI = gatekeeper.ServerURI; |