From 62d02e079eff3e6108bc4956e34fe5dd8f5cfcad Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 15 Apr 2008 14:18:37 +0000 Subject: From: dirk husemann attached is a patch set that * adds further robustness checks for the CreateUser and CreateRegion XmlRpc * fixes SceneManager.TryGetScene(IPEndPoint, Scene) --- contrary to my expectation IPEndPoint.Address is not sufficient for a comparision, IPEndPoint.Address.Address (the long representation) does work however. * add [RemoteAdmin] section to OpenSim.ini.example * fixes XML doc comments good night, dirk --- OpenSim/Region/Environment/Scenes/SceneManager.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index fbaf655..42a77dd 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs @@ -297,8 +297,10 @@ namespace OpenSim.Region.Environment.Scenes { foreach (Scene mscene in m_localScenes) { - if (mscene.RegionInfo.InternalEndPoint.Address == ipEndPoint.Address && - mscene.RegionInfo.InternalEndPoint.Port == ipEndPoint.Port) + // .NET WEIRDNESS ALERT: need to compare the long + // values of address... + if ((mscene.RegionInfo.InternalEndPoint.Address.Address == ipEndPoint.Address.Address) && + (mscene.RegionInfo.InternalEndPoint.Port == ipEndPoint.Port)) { scene = mscene; return true; -- cgit v1.1