Browse Source

Make console_port work.

Melanie 14 years ago
parent
commit
ff55ae0eb2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      OpenSim/Region/Application/OpenSim.cs

+ 3 - 1
OpenSim/Region/Application/OpenSim.cs

@@ -67,6 +67,7 @@ namespace OpenSim
             base.ReadExtraConfigSettings();
 
             IConfig startupConfig = m_config.Source.Configs["Startup"];
+            IConfig networkConfig = m_config.Source.Configs["Network"];
 
             int stpMaxThreads = 15;
 
@@ -80,7 +81,8 @@ namespace OpenSim
                 else
                     m_consoleType= startupConfig.GetString("console", String.Empty);
 
-                m_consolePort = (uint)startupConfig.GetInt("console_port", 0);
+                if (networkConfig != null)
+                    m_consolePort = (uint)networkConfig.GetInt("console_port", 0);
                 m_timedScript = startupConfig.GetString("timer_Script", "disabled");
                 if (m_logFileAppender != null)
                 {