diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/HypergridService/UserAgentService.cs | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/OpenSim/Services/HypergridService/UserAgentService.cs b/OpenSim/Services/HypergridService/UserAgentService.cs index 97e3705..15379b5 100644 --- a/OpenSim/Services/HypergridService/UserAgentService.cs +++ b/OpenSim/Services/HypergridService/UserAgentService.cs | |||
@@ -173,17 +173,22 @@ namespace OpenSim.Services.HypergridService | |||
173 | 173 | ||
174 | public bool VerifyClient(UUID sessionID, string token) | 174 | public bool VerifyClient(UUID sessionID, string token) |
175 | { | 175 | { |
176 | if (m_TravelingAgents.ContainsKey(sessionID)) | 176 | return true; |
177 | { | 177 | |
178 | // Aquiles heel. Must trust the first grid upon login | 178 | // Commenting this for now until I understand better what part of a sender's |
179 | if (m_TravelingAgents[sessionID].ClientToken == string.Empty) | 179 | // info stays unchanged throughout a session |
180 | { | 180 | // |
181 | m_TravelingAgents[sessionID].ClientToken = token; | 181 | //if (m_TravelingAgents.ContainsKey(sessionID)) |
182 | return true; | 182 | //{ |
183 | } | 183 | // // Aquiles heel. Must trust the first grid upon login |
184 | return m_TravelingAgents[sessionID].ClientToken == token; | 184 | // if (m_TravelingAgents[sessionID].ClientToken == string.Empty) |
185 | } | 185 | // { |
186 | return false; | 186 | // m_TravelingAgents[sessionID].ClientToken = token; |
187 | // return true; | ||
188 | // } | ||
189 | // return m_TravelingAgents[sessionID].ClientToken == token; | ||
190 | //} | ||
191 | //return false; | ||
187 | } | 192 | } |
188 | 193 | ||
189 | public bool VerifyAgent(UUID sessionID, string token) | 194 | public bool VerifyAgent(UUID sessionID, string token) |