* Adding the incoming url as Param[2] in the XmlRpcRequest

0.6.1-post-fixes
lbsa71 2008-11-25 11:45:34 +00:00
parent 4cfa8b0a10
commit 0f5112ffff
1 changed files with 3 additions and 1 deletions

View File

@ -578,12 +578,14 @@ namespace OpenSim.Framework.Servers
string methodName = xmlRprcRequest.MethodName; string methodName = xmlRprcRequest.MethodName;
if (methodName != null) if (methodName != null)
{ {
xmlRprcRequest.Params.Add(request.RemoteIPEndPoint); xmlRprcRequest.Params.Add(request.RemoteIPEndPoint); // Param[1]
XmlRpcResponse xmlRpcResponse; XmlRpcResponse xmlRpcResponse;
XmlRpcMethod method; XmlRpcMethod method;
if (m_rpcHandlers.TryGetValue(methodName, out method)) if (m_rpcHandlers.TryGetValue(methodName, out method))
{ {
xmlRprcRequest.Params.Add(request.Url); // Param[2]
try try
{ {
xmlRpcResponse = method(xmlRprcRequest); xmlRpcResponse = method(xmlRprcRequest);