diff options
author | Diva Canto | 2010-05-15 19:25:14 -0700 |
---|---|---|
committer | Diva Canto | 2010-05-15 19:25:14 -0700 |
commit | 2a1e45f65736214a9e8d782be1f92bb78725121f (patch) | |
tree | 27a2f60b2c68ac1c8ac5d7886c9bfa743c8cb24d /OpenSim/Services/HypergridService | |
parent | delete now unused MessageServerInfo (diff) | |
download | opensim-SC_OLD-2a1e45f65736214a9e8d782be1f92bb78725121f.zip opensim-SC_OLD-2a1e45f65736214a9e8d782be1f92bb78725121f.tar.gz opensim-SC_OLD-2a1e45f65736214a9e8d782be1f92bb78725121f.tar.bz2 opensim-SC_OLD-2a1e45f65736214a9e8d782be1f92bb78725121f.tar.xz |
Finalized the client's TCP IP address verification process for HG1.5.
Diffstat (limited to 'OpenSim/Services/HypergridService')
-rw-r--r-- | OpenSim/Services/HypergridService/UserAgentService.cs | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/OpenSim/Services/HypergridService/UserAgentService.cs b/OpenSim/Services/HypergridService/UserAgentService.cs index 64f7e8a..0172960 100644 --- a/OpenSim/Services/HypergridService/UserAgentService.cs +++ b/OpenSim/Services/HypergridService/UserAgentService.cs | |||
@@ -148,6 +148,15 @@ namespace OpenSim.Services.HypergridService | |||
148 | return true; | 148 | return true; |
149 | } | 149 | } |
150 | 150 | ||
151 | public void SetClientToken(UUID sessionID, string token) | ||
152 | { | ||
153 | if (m_TravelingAgents.ContainsKey(sessionID)) | ||
154 | { | ||
155 | m_log.DebugFormat("[USER AGENT SERVICE]: Setting token {0} for session {1}", token, sessionID); | ||
156 | m_TravelingAgents[sessionID].ClientToken = token; | ||
157 | } | ||
158 | } | ||
159 | |||
151 | TravelingAgentInfo UpdateTravelInfo(AgentCircuitData agentCircuit, GridRegion region) | 160 | TravelingAgentInfo UpdateTravelInfo(AgentCircuitData agentCircuit, GridRegion region) |
152 | { | 161 | { |
153 | TravelingAgentInfo travel = new TravelingAgentInfo(); | 162 | TravelingAgentInfo travel = new TravelingAgentInfo(); |
@@ -203,22 +212,16 @@ namespace OpenSim.Services.HypergridService | |||
203 | 212 | ||
204 | public bool VerifyClient(UUID sessionID, string token) | 213 | public bool VerifyClient(UUID sessionID, string token) |
205 | { | 214 | { |
206 | return true; | 215 | m_log.DebugFormat("[USER AGENT SERVICE]: Verifying Client session {0} with token {1}", sessionID, token); |
216 | //return true; | ||
207 | 217 | ||
208 | // Commenting this for now until I understand better what part of a sender's | 218 | // Commenting this for now until I understand better what part of a sender's |
209 | // info stays unchanged throughout a session | 219 | // info stays unchanged throughout a session |
210 | // | 220 | // |
211 | //if (m_TravelingAgents.ContainsKey(sessionID)) | 221 | if (m_TravelingAgents.ContainsKey(sessionID)) |
212 | //{ | 222 | return m_TravelingAgents[sessionID].ClientToken == token; |
213 | // // Aquiles heel. Must trust the first grid upon login | 223 | |
214 | // if (m_TravelingAgents[sessionID].ClientToken == string.Empty) | 224 | return false; |
215 | // { | ||
216 | // m_TravelingAgents[sessionID].ClientToken = token; | ||
217 | // return true; | ||
218 | // } | ||
219 | // return m_TravelingAgents[sessionID].ClientToken == token; | ||
220 | //} | ||
221 | //return false; | ||
222 | } | 225 | } |
223 | 226 | ||
224 | public bool VerifyAgent(UUID sessionID, string token) | 227 | public bool VerifyAgent(UUID sessionID, string token) |