mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Add a console_port setting to let the rest console use a different port
from the region server
This commit is contained in:
@@ -32,7 +32,7 @@ namespace OpenSim.Framework
|
||||
{
|
||||
public class MainServer
|
||||
{
|
||||
private static BaseHttpServer instance;
|
||||
private static BaseHttpServer instance = null;
|
||||
private static Dictionary<uint, BaseHttpServer> m_Servers =
|
||||
new Dictionary<uint, BaseHttpServer>();
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace OpenSim.Framework
|
||||
{
|
||||
if (port == 0)
|
||||
return Instance;
|
||||
if (port == Instance.Port)
|
||||
if (instance != null && port == Instance.Port)
|
||||
return Instance;
|
||||
|
||||
if (m_Servers.ContainsKey(port))
|
||||
|
||||
Reference in New Issue
Block a user