mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Fixed two compiler warnings dealing with IPAddress equality.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user