* Mono sucks. (Fixes crash due to Mono not implementing NetworkInformation.IPv4Mask aka Subnet masks)
parent
ac79ff8dc6
commit
2cfe44f13e
|
@ -143,6 +143,8 @@ namespace OpenSim.Framework
|
||||||
}
|
}
|
||||||
|
|
||||||
static NetworkUtil()
|
static NetworkUtil()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
foreach (NetworkInterface ni in NetworkInterface.GetAllNetworkInterfaces())
|
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)
|
public static IPAddress GetIPFor(IPEndPoint user, string defaultHostname)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue