mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Create a MainServer static class to access the regions server's HTTP server
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Reflection;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Console;
|
||||
using OpenSim.Framework.Servers.HttpServer;
|
||||
using log4net;
|
||||
@@ -74,6 +75,9 @@ namespace OpenSim.Server.Base
|
||||
}
|
||||
|
||||
m_HttpServer = new BaseHttpServer(port);
|
||||
|
||||
MainServer.Instance = m_HttpServer;
|
||||
|
||||
if (MainConsole.Instance is RemoteConsole)
|
||||
{
|
||||
((RemoteConsole)MainConsole.Instance).SetServer(m_HttpServer);
|
||||
|
||||
Reference in New Issue
Block a user