mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
TEST**** wingridproxy detection at grid login. Untested possible not
very reliable. Adds some load even on region servers because of code at BaseHttpServer.
This commit is contained in:
@@ -966,6 +966,19 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
string responseString = String.Empty;
|
||||
XmlRpcRequest xmlRprcRequest = null;
|
||||
|
||||
bool gridproxy = false;
|
||||
if (requestBody.Contains("encoding=\"utf-8"))
|
||||
{
|
||||
int channelindx = -1;
|
||||
int optionsindx = requestBody.IndexOf(">options<");
|
||||
if(optionsindx >0)
|
||||
{
|
||||
channelindx = requestBody.IndexOf(">channel<");
|
||||
if (optionsindx < channelindx)
|
||||
gridproxy = true;
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
xmlRprcRequest = (XmlRpcRequest) (new XmlRpcRequestDeserializer()).Deserialize(requestBody);
|
||||
@@ -1023,6 +1036,8 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
}
|
||||
xmlRprcRequest.Params.Add(request.Headers.Get(xff)); // Param[3]
|
||||
|
||||
if (gridproxy)
|
||||
xmlRprcRequest.Params.Add("gridproxy"); // Param[4]
|
||||
try
|
||||
{
|
||||
xmlRpcResponse = method(xmlRprcRequest, request.RemoteIPEndPoint);
|
||||
|
||||
Reference in New Issue
Block a user