aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server')
-rw-r--r--OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs2
-rw-r--r--OpenSim/Server/Handlers/Inventory/XInventoryInConnector.cs1
-rw-r--r--OpenSim/Server/Handlers/Simulation/AgentHandlers.cs25
3 files changed, 24 insertions, 4 deletions
diff --git a/OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs b/OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs
index 0066bd4..a5ec4f2 100644
--- a/OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs
+++ b/OpenSim/Server/Handlers/Hypergrid/HomeAgentHandlers.cs
@@ -217,8 +217,6 @@ namespace OpenSim.Server.Handlers.Hypergrid
217 Hashtable headers = (Hashtable)request["headers"]; 217 Hashtable headers = (Hashtable)request["headers"];
218 if (headers.ContainsKey("X-Forwarded-For") && headers["X-Forwarded-For"] != null) 218 if (headers.ContainsKey("X-Forwarded-For") && headers["X-Forwarded-For"] != null)
219 { 219 {
220 m_log.DebugFormat("[HOME AGENT HANDLER]: XFF is {0}", headers["X-Forwarded-For"]);
221
222 IPEndPoint ep = Util.GetClientIPFromXFF((string)headers["X-Forwarded-For"]); 220 IPEndPoint ep = Util.GetClientIPFromXFF((string)headers["X-Forwarded-For"]);
223 if (ep != null) 221 if (ep != null)
224 return ep.Address.ToString(); 222 return ep.Address.ToString();
diff --git a/OpenSim/Server/Handlers/Inventory/XInventoryInConnector.cs b/OpenSim/Server/Handlers/Inventory/XInventoryInConnector.cs
index 00f035c..edb44ea 100644
--- a/OpenSim/Server/Handlers/Inventory/XInventoryInConnector.cs
+++ b/OpenSim/Server/Handlers/Inventory/XInventoryInConnector.cs
@@ -408,6 +408,7 @@ namespace OpenSim.Server.Handlers.Asset
408 408
409 byte[] HandlePurgeFolder(Dictionary<string,object> request) 409 byte[] HandlePurgeFolder(Dictionary<string,object> request)
410 { 410 {
411
411 Dictionary<string,object> result = new Dictionary<string,object>(); 412 Dictionary<string,object> result = new Dictionary<string,object>();
412 UUID folderID = UUID.Zero; 413 UUID folderID = UUID.Zero;
413 UUID.TryParse(request["ID"].ToString(), out folderID); 414 UUID.TryParse(request["ID"].ToString(), out folderID);
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
index 9c41bcb..8aa410b 100644
--- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
+++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
@@ -110,6 +110,11 @@ namespace OpenSim.Server.Handlers.Simulation
110 DoAgentDelete(request, responsedata, agentID, action, regionID); 110 DoAgentDelete(request, responsedata, agentID, action, regionID);
111 return responsedata; 111 return responsedata;
112 } 112 }
113 else if (method.Equals("DELETECHILD"))
114 {
115 DoChildAgentDelete(request, responsedata, agentID, action, regionID);
116 return responsedata;
117 }
113 else if (method.Equals("QUERYACCESSS")) 118 else if (method.Equals("QUERYACCESSS"))
114 { 119 {
115 DoQueryAccess(request, responsedata, agentID, regionID); 120 DoQueryAccess(request, responsedata, agentID, regionID);
@@ -202,8 +207,6 @@ namespace OpenSim.Server.Handlers.Simulation
202 Hashtable headers = (Hashtable)request["headers"]; 207 Hashtable headers = (Hashtable)request["headers"];
203 if (headers.ContainsKey("X-Forwarded-For") && headers["X-Forwarded-For"] != null) 208 if (headers.ContainsKey("X-Forwarded-For") && headers["X-Forwarded-For"] != null)
204 { 209 {
205 m_log.DebugFormat("[AGENT HANDLER]: XFF is {0}", headers["X-Forwarded-For"]);
206
207 IPEndPoint ep = Util.GetClientIPFromXFF((string)headers["X-Forwarded-For"]); 210 IPEndPoint ep = Util.GetClientIPFromXFF((string)headers["X-Forwarded-For"]);
208 if (ep != null) 211 if (ep != null)
209 return ep.Address.ToString(); 212 return ep.Address.ToString();
@@ -380,6 +383,24 @@ namespace OpenSim.Server.Handlers.Simulation
380 } 383 }
381 } 384 }
382 385
386 protected void DoChildAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID)
387 {
388 m_log.Debug(" >>> DoChildAgentDelete action:" + action + "; RegionID:" + regionID);
389
390 GridRegion destination = new GridRegion();
391 destination.RegionID = regionID;
392
393 if (action.Equals("release"))
394 ReleaseAgent(regionID, id);
395 else
396 m_SimulationService.CloseChildAgent(destination, id);
397
398 responsedata["int_response_code"] = HttpStatusCode.OK;
399 responsedata["str_response_string"] = "OpenSim agent " + id.ToString();
400
401 m_log.Debug("[AGENT HANDLER]: Child Agent Released/Deleted.");
402 }
403
383 protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID) 404 protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID)
384 { 405 {
385 m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID); 406 m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID);