Fixed GridServer to use default Recv Key if a sim profile is not present.

0.1-prestable
Adam Frisby 2007-05-07 00:05:56 +00:00
parent fdd0191f59
commit 315e4dede6
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ namespace OpenGridServices.GridServer
class GridManager
{
Dictionary<string, IGridData> _plugins = new Dictionary<string, IGridData>();
public string defaultRecvKey;
/// <summary>
/// Adds a new grid server plugin - grid servers will be requested in the order they were loaded.
@ -268,7 +269,7 @@ namespace OpenGridServices.GridServer
TheSim = new SimProfileData();
LLUUID UUID = new LLUUID(param);
TheSim.UUID = UUID;
TheSim.regionRecvKey = "badger";// MAJORFIX
TheSim.regionRecvKey = defaultRecvKey;
}
XmlDocument doc = new XmlDocument();

View File

@ -98,6 +98,7 @@ namespace OpenGridServices.GridServer
m_console.WriteLine("Main.cs:Startup() - Connecting to Storage Server");
m_gridManager = new GridManager();
m_gridManager.AddPlugin(GridDll); // Made of win
m_gridManager.defaultRecvKey = Cfg.SimRecvKey;
m_console.WriteLine("Main.cs:Startup() - Starting HTTP process");
BaseHttpServer httpServer = new BaseHttpServer(8001);