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 739e279..4466222 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs | |||
@@ -367,9 +367,13 @@ namespace OpenSim.Services.Interfaces | |||
367 | } | 367 | } |
368 | catch (SocketException e) | 368 | catch (SocketException e) |
369 | { | 369 | { |
370 | throw new Exception( | 370 | /*throw new Exception( |
371 | "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + | 371 | "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + |
372 | e + "' attached to this exception", e); | 372 | e + "' attached to this exception", e);*/ |
373 | // Don't throw a fatal exception here, instead, return Null and handle it in the caller. | ||
374 | // Reason is, on systems such as OSgrid it has occured that known hostnames stop | ||
375 | // resolving and thus make surrounding regions crash out with this exception. | ||
376 | return null; | ||
373 | } | 377 | } |
374 | 378 | ||
375 | return new IPEndPoint(ia, m_internalEndPoint.Port); | 379 | return new IPEndPoint(ia, m_internalEndPoint.Port); |
@@ -440,6 +444,12 @@ namespace OpenSim.Services.Interfaces | |||
440 | if (kvp.ContainsKey("regionName")) | 444 | if (kvp.ContainsKey("regionName")) |
441 | RegionName = (string)kvp["regionName"]; | 445 | RegionName = (string)kvp["regionName"]; |
442 | 446 | ||
447 | if (kvp.ContainsKey("access")) | ||
448 | { | ||
449 | byte access = Convert.ToByte((string)kvp["access"]); | ||
450 | Maturity = (int)Util.ConvertAccessLevelToMaturity(access); | ||
451 | } | ||
452 | |||
443 | if (kvp.ContainsKey("serverIP")) | 453 | if (kvp.ContainsKey("serverIP")) |
444 | { | 454 | { |
445 | //int port = 0; | 455 | //int port = 0; |