diff options
Diffstat (limited to 'OpenSim/Services/Interfaces/IGridService.cs')
-rw-r--r-- | OpenSim/Services/Interfaces/IGridService.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs index 88ac5b3..e3c70d3 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs | |||
@@ -341,9 +341,13 @@ namespace OpenSim.Services.Interfaces | |||
341 | } | 341 | } |
342 | catch (SocketException e) | 342 | catch (SocketException e) |
343 | { | 343 | { |
344 | throw new Exception( | 344 | /*throw new Exception( |
345 | "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + | 345 | "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + |
346 | e + "' attached to this exception", e); | 346 | e + "' attached to this exception", e);*/ |
347 | // Don't throw a fatal exception here, instead, return Null and handle it in the caller. | ||
348 | // Reason is, on systems such as OSgrid it has occured that known hostnames stop | ||
349 | // resolving and thus make surrounding regions crash out with this exception. | ||
350 | return null; | ||
347 | } | 351 | } |
348 | 352 | ||
349 | return new IPEndPoint(ia, m_internalEndPoint.Port); | 353 | return new IPEndPoint(ia, m_internalEndPoint.Port); |
@@ -402,6 +406,12 @@ namespace OpenSim.Services.Interfaces | |||
402 | if (kvp.ContainsKey("regionName")) | 406 | if (kvp.ContainsKey("regionName")) |
403 | RegionName = (string)kvp["regionName"]; | 407 | RegionName = (string)kvp["regionName"]; |
404 | 408 | ||
409 | if (kvp.ContainsKey("access")) | ||
410 | { | ||
411 | byte access = Convert.ToByte((string)kvp["access"]); | ||
412 | Maturity = (int)Util.ConvertAccessLevelToMaturity(access); | ||
413 | } | ||
414 | |||
405 | if (kvp.ContainsKey("serverIP")) | 415 | if (kvp.ContainsKey("serverIP")) |
406 | { | 416 | { |
407 | //int port = 0; | 417 | //int port = 0; |