Commenting UserAgentService.VerifyClient(UUID sessionID, string token) for now until I understand better the client IP issue.

slimupdates
Diva Canto 2010-02-02 19:41:46 -08:00
parent b517eb6d3a
commit 11ed5dee3b
1 changed files with 16 additions and 11 deletions

View File

@ -173,17 +173,22 @@ namespace OpenSim.Services.HypergridService
public bool VerifyClient(UUID sessionID, string token) public bool VerifyClient(UUID sessionID, string token)
{ {
if (m_TravelingAgents.ContainsKey(sessionID)) return true;
{
// Aquiles heel. Must trust the first grid upon login // Commenting this for now until I understand better what part of a sender's
if (m_TravelingAgents[sessionID].ClientToken == string.Empty) // info stays unchanged throughout a session
{ //
m_TravelingAgents[sessionID].ClientToken = token; //if (m_TravelingAgents.ContainsKey(sessionID))
return true; //{
} // // Aquiles heel. Must trust the first grid upon login
return m_TravelingAgents[sessionID].ClientToken == token; // if (m_TravelingAgents[sessionID].ClientToken == string.Empty)
} // {
return false; // m_TravelingAgents[sessionID].ClientToken = token;
// return true;
// }
// return m_TravelingAgents[sessionID].ClientToken == token;
//}
//return false;
} }
public bool VerifyAgent(UUID sessionID, string token) public bool VerifyAgent(UUID sessionID, string token)