From a2b32bdd6fb9d6ceab2a2ac753102b4a458247a3 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 18 Apr 2008 09:35:24 +0000 Subject: * Fixed two compiler warnings dealing with IPAddress equality. --- OpenSim/Region/Environment/Scenes/SceneManager.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 42a77dd..102be30 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs @@ -297,9 +297,7 @@ namespace OpenSim.Region.Environment.Scenes { foreach (Scene mscene in m_localScenes) { - // .NET WEIRDNESS ALERT: need to compare the long - // values of address... - if ((mscene.RegionInfo.InternalEndPoint.Address.Address == ipEndPoint.Address.Address) && + if((mscene.RegionInfo.InternalEndPoint.Address.Equals(ipEndPoint.Address.Address)) && (mscene.RegionInfo.InternalEndPoint.Port == ipEndPoint.Port)) { scene = mscene; -- cgit v1.1