diff options
Diffstat (limited to '')
-rwxr-xr-x[-rw-r--r--] | OpenSim/Server/Base/HttpServerBase.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Server/Base/HttpServerBase.cs b/OpenSim/Server/Base/HttpServerBase.cs index 3357250..5e76156 100644..100755 --- a/OpenSim/Server/Base/HttpServerBase.cs +++ b/OpenSim/Server/Base/HttpServerBase.cs | |||
@@ -149,12 +149,14 @@ namespace OpenSim.Server.Base | |||
149 | 149 | ||
150 | MainServer.RegisterHttpConsoleCommands(MainConsole.Instance); | 150 | MainServer.RegisterHttpConsoleCommands(MainConsole.Instance); |
151 | 151 | ||
152 | if (MainConsole.Instance is RemoteConsole) | 152 | MethodInfo mi = m_console.GetType().GetMethod("SetServer", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(BaseHttpServer) }, null); |
153 | |||
154 | if (mi != null) | ||
153 | { | 155 | { |
154 | if (m_consolePort == 0) | 156 | if (m_consolePort == 0) |
155 | ((RemoteConsole)MainConsole.Instance).SetServer(MainServer.Instance); | 157 | mi.Invoke(MainConsole.Instance, new object[] { MainServer.Instance }); |
156 | else | 158 | else |
157 | ((RemoteConsole)MainConsole.Instance).SetServer(MainServer.GetHttpServer(m_consolePort)); | 159 | mi.Invoke(MainConsole.Instance, new object[] { MainServer.GetHttpServer(m_consolePort) }); |
158 | } | 160 | } |
159 | } | 161 | } |
160 | } | 162 | } |