aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorCharles Krinke2009-06-29 14:01:08 +0000
committerCharles Krinke2009-06-29 14:01:08 +0000
commit7545f12c5fe4484928c938b08ac8b31b9e82e929 (patch)
tree947eabe45cc14f0d964523ac0aa70de5a2a80bde
parentThank you kindly, Grumly57 for a patch that solves: (diff)
downloadopensim-SC_OLD-7545f12c5fe4484928c938b08ac8b31b9e82e929.zip
opensim-SC_OLD-7545f12c5fe4484928c938b08ac8b31b9e82e929.tar.gz
opensim-SC_OLD-7545f12c5fe4484928c938b08ac8b31b9e82e929.tar.bz2
opensim-SC_OLD-7545f12c5fe4484928c938b08ac8b31b9e82e929.tar.xz
Thank you kindly, Godfrey, for a patch that:
The new IRCd module causes an error when multiple instances of OpenSim are run on the same machine; since the port number (6666) is hardcoded, the second and subsequent instances crash upon startup because the port is already in use. Attached is a patch which adds a Port specifier to the [IRCd] section of the config file, which defaults to 6666 if not present.
-rw-r--r--OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs
index 30a39b3..4b199ac 100644
--- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs
+++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs
@@ -49,8 +49,9 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView
49 if (null != source.Configs["IRCd"] && 49 if (null != source.Configs["IRCd"] &&
50 source.Configs["IRCd"].GetBoolean("Enabled",false)) 50 source.Configs["IRCd"].GetBoolean("Enabled",false))
51 { 51 {
52 int portNo = source.Configs["IRCd"].GetInt("Port",6666);
52 m_scene = scene; 53 m_scene = scene;
53 m_server = new IRCServer(IPAddress.Parse("0.0.0.0"), 6666, scene); 54 m_server = new IRCServer(IPAddress.Parse("0.0.0.0"), portNo, scene);
54 m_server.OnNewIRCClient += m_server_OnNewIRCClient; 55 m_server.OnNewIRCClient += m_server_OnNewIRCClient;
55 } 56 }
56 } 57 }