Add a few more debug messages to diagnose problems in OSGrid's proxy use

LSLKeyTest
Diva Canto 2016-06-13 18:04:28 -07:00
parent 3ef5e1a24b
commit 2d2414adcf
1 changed files with 5 additions and 0 deletions

View File

@ -63,13 +63,18 @@ namespace OpenSim.Server.Handlers.Login
public XmlRpcResponse HandleXMLRPCLogin(XmlRpcRequest request, IPEndPoint remoteClient) public XmlRpcResponse HandleXMLRPCLogin(XmlRpcRequest request, IPEndPoint remoteClient)
{ {
m_log.DebugFormat("[TEST]: HandleXMLRPCLogin from {0}", remoteClient.ToString());
Hashtable requestData = (Hashtable)request.Params[0]; Hashtable requestData = (Hashtable)request.Params[0];
if (m_Proxy && request.Params[3] != null) if (m_Proxy && request.Params[3] != null)
{ {
m_log.DebugFormat("[TEST]: Proxy ! {0}", request.Params[3]);
IPEndPoint ep = Util.GetClientIPFromXFF((string)request.Params[3]); IPEndPoint ep = Util.GetClientIPFromXFF((string)request.Params[3]);
if (ep != null) if (ep != null)
{
// Bang! // Bang!
remoteClient = ep; remoteClient = ep;
m_log.DebugFormat("[TEST]: IP is {0}", remoteClient.ToString());
}
} }
if (requestData != null) if (requestData != null)