* Fix typo which meant that RestComms was never enabled if you explicitly enabled it

* In fact, it would only be activated if there was no [Communications] section at all (which would be the case for most people with existing region setups unless they 
specifically added it in
* This fix means that enabling inter-region rest comms is now the default
0.6.2-post-fixes
Justin Clarke Casey 2009-01-14 16:52:12 +00:00
parent e10de20772
commit 2a5f060ed8
1 changed files with 5 additions and 3 deletions

View File

@ -70,10 +70,12 @@ namespace OpenSim.Region.Environment.Modules.Communications.REST
{ {
initialized = true; initialized = true;
IConfig startupConfig = config.Configs["Communications"]; IConfig startupConfig = config.Configs["Communications"];
if ((startupConfig == null) ||
(startupConfig != null) && (startupConfig.GetString("InterregionComms", "RESTCommms") == "RESTComms")) if ((startupConfig == null)
|| (startupConfig != null)
&& (startupConfig.GetString("InterregionComms", "RESTComms") == "RESTComms"))
{ {
m_log.Debug("[REST COMMS]: Enabling InterregionComms RESTComms module"); m_log.Info("[REST COMMS]: Enabling InterregionComms RESTComms module");
m_enabled = true; m_enabled = true;
InitOnce(scene); InitOnce(scene);
} }