Add a console_port setting to let the rest console use a different port

from the region server
This commit is contained in:
Melanie
2010-01-11 03:29:24 +00:00
parent 2320b17ca9
commit e966e51b89
3 changed files with 15 additions and 3 deletions

View File

@@ -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))