diff options
author | Diva Canto | 2013-06-21 20:52:46 -0700 |
---|---|---|
committer | Diva Canto | 2013-06-21 20:52:46 -0700 |
commit | 4778d67005c3364ee3f75bdd6640f03ff945d885 (patch) | |
tree | b77a75fe01a7e7b5aa0114d655edca7683b8c51d /OpenSim/Services/HypergridService | |
parent | BulletSim: Implementation of Linear Deflection, it is a partial help for the ... (diff) | |
download | opensim-SC_OLD-4778d67005c3364ee3f75bdd6640f03ff945d885.zip opensim-SC_OLD-4778d67005c3364ee3f75bdd6640f03ff945d885.tar.gz opensim-SC_OLD-4778d67005c3364ee3f75bdd6640f03ff945d885.tar.bz2 opensim-SC_OLD-4778d67005c3364ee3f75bdd6640f03ff945d885.tar.xz |
Finally moved HG agent transfers to use agent fatpacks.
Diffstat (limited to 'OpenSim/Services/HypergridService')
-rw-r--r-- | OpenSim/Services/HypergridService/UserAgentService.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Services/HypergridService/UserAgentService.cs b/OpenSim/Services/HypergridService/UserAgentService.cs index 737e9c9..733993f 100644 --- a/OpenSim/Services/HypergridService/UserAgentService.cs +++ b/OpenSim/Services/HypergridService/UserAgentService.cs | |||
@@ -210,10 +210,10 @@ namespace OpenSim.Services.HypergridService | |||
210 | return home; | 210 | return home; |
211 | } | 211 | } |
212 | 212 | ||
213 | public bool LoginAgentToGrid(AgentCircuitData agentCircuit, GridRegion gatekeeper, GridRegion finalDestination, IPEndPoint clientIP, out string reason) | 213 | public bool LoginAgentToGrid(AgentCircuitData agentCircuit, GridRegion gatekeeper, GridRegion finalDestination, bool fromLogin, out string reason) |
214 | { | 214 | { |
215 | m_log.DebugFormat("[USER AGENT SERVICE]: Request to login user {0} {1} (@{2}) to grid {3}", | 215 | m_log.DebugFormat("[USER AGENT SERVICE]: Request to login user {0} {1} (@{2}) to grid {3}", |
216 | agentCircuit.firstname, agentCircuit.lastname, ((clientIP == null) ? "stored IP" : clientIP.Address.ToString()), gatekeeper.ServerURI); | 216 | agentCircuit.firstname, agentCircuit.lastname, (fromLogin ? agentCircuit.IPAddress : "stored IP"), gatekeeper.ServerURI); |
217 | 217 | ||
218 | string gridName = gatekeeper.ServerURI; | 218 | string gridName = gatekeeper.ServerURI; |
219 | 219 | ||
@@ -265,7 +265,7 @@ namespace OpenSim.Services.HypergridService | |||
265 | bool success = false; | 265 | bool success = false; |
266 | string myExternalIP = string.Empty; | 266 | string myExternalIP = string.Empty; |
267 | 267 | ||
268 | m_log.DebugFormat("[USER AGENT SERVICE]: this grid: {0}, desired grid: {1}", m_GridName, gridName); | 268 | m_log.DebugFormat("[USER AGENT SERVICE]: this grid: {0}, desired grid: {1}, desired region: {2}", m_GridName, gridName, region.RegionID); |
269 | 269 | ||
270 | if (m_GridName == gridName) | 270 | if (m_GridName == gridName) |
271 | success = m_GatekeeperService.LoginAgent(agentCircuit, finalDestination, out reason); | 271 | success = m_GatekeeperService.LoginAgent(agentCircuit, finalDestination, out reason); |
@@ -296,8 +296,8 @@ namespace OpenSim.Services.HypergridService | |||
296 | 296 | ||
297 | m_log.DebugFormat("[USER AGENT SERVICE]: Gatekeeper sees me as {0}", myExternalIP); | 297 | m_log.DebugFormat("[USER AGENT SERVICE]: Gatekeeper sees me as {0}", myExternalIP); |
298 | // else set the IP addresses associated with this client | 298 | // else set the IP addresses associated with this client |
299 | if (clientIP != null) | 299 | if (fromLogin) |
300 | m_TravelingAgents[agentCircuit.SessionID].ClientIPAddress = clientIP.Address.ToString(); | 300 | m_TravelingAgents[agentCircuit.SessionID].ClientIPAddress = agentCircuit.IPAddress; |
301 | m_TravelingAgents[agentCircuit.SessionID].MyIpAddress = myExternalIP; | 301 | m_TravelingAgents[agentCircuit.SessionID].MyIpAddress = myExternalIP; |
302 | 302 | ||
303 | return true; | 303 | return true; |
@@ -306,7 +306,7 @@ namespace OpenSim.Services.HypergridService | |||
306 | public bool LoginAgentToGrid(AgentCircuitData agentCircuit, GridRegion gatekeeper, GridRegion finalDestination, out string reason) | 306 | public bool LoginAgentToGrid(AgentCircuitData agentCircuit, GridRegion gatekeeper, GridRegion finalDestination, out string reason) |
307 | { | 307 | { |
308 | reason = string.Empty; | 308 | reason = string.Empty; |
309 | return LoginAgentToGrid(agentCircuit, gatekeeper, finalDestination, null, out reason); | 309 | return LoginAgentToGrid(agentCircuit, gatekeeper, finalDestination, false, out reason); |
310 | } | 310 | } |
311 | 311 | ||
312 | private void SetClientIP(UUID sessionID, string ip) | 312 | private void SetClientIP(UUID sessionID, string ip) |