mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Guard against unauthorized agent deletes.
This commit is contained in:
@@ -367,11 +367,10 @@ namespace OpenSim.Services.Connectors.Simulation
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
public bool CloseAgent(GridRegion destination, UUID id)
|
||||
public bool CloseAgent(GridRegion destination, UUID id, string auth_code)
|
||||
{
|
||||
// m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent start");
|
||||
|
||||
string uri = destination.ServerURI + AgentPath() + id + "/" + destination.RegionID.ToString() + "/";
|
||||
string uri = destination.ServerURI + AgentPath() + id + "/" + destination.RegionID.ToString() + "/?auth=" + auth_code;
|
||||
m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent {0}", uri);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user