simplify a bit some caps paths

This commit is contained in:
UbitUmarov
2018-11-14 16:23:14 +00:00
parent 942fd5e653
commit b48cbcbfdd
4 changed files with 14 additions and 16 deletions

View File

@@ -350,17 +350,18 @@ namespace OpenSim.Region.ClientStack.Linden
public string SeedCapRequest(string request, string path, string param,
IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
{
UUID agentID = m_HostCapsObj.AgentID;
m_log.DebugFormat(
"[CAPS]: Received SEED caps request in {0} for agent {1}", m_regionName, m_HostCapsObj.AgentID);
"[CAPS]: Received SEED caps request in {0} for agent {1}", m_regionName, agentID);
if (!m_HostCapsObj.WaitForActivation())
return string.Empty;
if (!m_Scene.CheckClient(m_HostCapsObj.AgentID, httpRequest.RemoteIPEndPoint))
if (!m_Scene.CheckClient(agentID, httpRequest.RemoteIPEndPoint))
{
m_log.WarnFormat(
"[CAPS]: Unauthorized CAPS client {0} from {1}",
m_HostCapsObj.AgentID, httpRequest.RemoteIPEndPoint);
agentID, httpRequest.RemoteIPEndPoint);
return string.Empty;
}