no.. still a fail

0.9.0-post-fixes
UbitUmarov 2017-05-29 03:41:09 +01:00
parent 27afe136d4
commit 7be6e16555
2 changed files with 14 additions and 20 deletions

View File

@ -1078,31 +1078,25 @@ namespace OpenSim.Framework
// Reset for next check
ia = null;
#if (_MONO)
// mono is a TOTAL CRAP
int retry = 3;
while(ia == null && retry-- >= 0)
#endif
try
{
try
foreach (IPAddress Adr in Dns.GetHostAddresses(hostname))
{
foreach (IPAddress Adr in Dns.GetHostAddresses(hostname))
{
if (ia == null)
ia = Adr;
if (ia == null)
ia = Adr;
if (Adr.AddressFamily == AddressFamily.InterNetwork)
{
ia = Adr;
break;
}
if (Adr.AddressFamily == AddressFamily.InterNetwork)
{
ia = Adr;
break;
}
}
catch // (SocketException e)
{
ia = null;
}
}
catch // (SocketException e)
{
ia = null;
}
return getEndPoint(ia,port);
}

View File

@ -2171,7 +2171,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
InformClientOfNeighbourAsync(sp, cagents[count], neighbour, ipe, true);
else
{
m_log.Debug("[ENTITY TRANSFER MODULE]: DNS for neighbour lost");
m_log.DebugFormat("[ENTITY TRANSFER MODULE]: DNS for neighbour {0} lost", neighbour.ExternalHostName);
}
count++;
}