* Fixed two compiler warnings dealing with IPAddress equality.

0.6.0-stable
Adam Frisby 2008-04-18 09:35:24 +00:00
parent b280605237
commit a2b32bdd6f
1 changed files with 1 additions and 3 deletions

View File

@ -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;