Applied Diva's patch from mantis #2590/ Trunk Revision 7200 to 0.6 stable branch

0.6.0-stable
MW 2008-11-14 10:38:47 +00:00
parent 9cf75f649d
commit af4ff8686b
2 changed files with 11 additions and 2 deletions

View File

@ -1547,7 +1547,16 @@ namespace OpenSim.Region.Communications.OGS1
IPAddress ia; IPAddress ia;
IPAddress.TryParse(address, out ia); IPAddress.TryParse(address, out ia);
IPEndPoint m_EndPoint = new IPEndPoint(ia, (int)port); IPEndPoint m_EndPoint;
try
{
m_EndPoint = new IPEndPoint(ia, (int)port);
}
catch (Exception)
{
m_log.Debug("[OGS1 GRID SERVICES]: Invalid remoting address: " + address);
return false;
}
AsyncCallback callback = delegate(IAsyncResult iar) AsyncCallback callback = delegate(IAsyncResult iar)
{ {