* Mono sucks. (Fixes crash due to Mono not implementing NetworkInformation.IPv4Mask aka Subnet masks)

0.6.6-post-fixes
Adam Frisby 2009-05-24 02:07:54 +00:00
parent ac79ff8dc6
commit 2cfe44f13e
1 changed files with 12 additions and 5 deletions

View File

@ -143,6 +143,8 @@ namespace OpenSim.Framework
}
static NetworkUtil()
{
try
{
foreach (NetworkInterface ni in NetworkInterface.GetAllNetworkInterfaces())
{
@ -158,6 +160,11 @@ namespace OpenSim.Framework
}
}
}
catch (NotImplementedException)
{
// Mono Sucks.
}
}
public static IPAddress GetIPFor(IPEndPoint user, string defaultHostname)
{