Gatekeeper: stop bogus agents earlier, here at the Gatekeeper. No need to bother the sim.

cpu-performance
Diva Canto 2013-07-13 17:52:05 -07:00
parent 5a1d6727e1
commit 4d93870fe5
1 changed files with 6 additions and 0 deletions

View File

@ -419,6 +419,12 @@ namespace OpenSim.Services.HypergridService
if (!CheckAddress(aCircuit.ServiceSessionID))
return false;
if (string.IsNullOrEmpty(aCircuit.IPAddress))
{
m_log.DebugFormat("[GATEKEEPER SERVICE]: Agent did not provide a client IP address.");
return false;
}
string userURL = string.Empty;
if (aCircuit.ServiceURLs.ContainsKey("HomeURI"))
userURL = aCircuit.ServiceURLs["HomeURI"].ToString();