mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Mantis#2590. Thank you kindly, Diva for a patch that solves:
When the given address to CheckRegion is wrong, it crashes the whole server. Patch included.
This commit is contained in:
@@ -1547,7 +1547,16 @@ namespace OpenSim.Region.Communications.OGS1
|
||||
|
||||
IPAddress 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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user