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 6d3bff7..a0d270c 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs | |||
@@ -273,9 +273,13 @@ namespace OpenSim.Services.Interfaces | |||
273 | } | 273 | } |
274 | catch (SocketException e) | 274 | catch (SocketException e) |
275 | { | 275 | { |
276 | throw new Exception( | 276 | /*throw new Exception( |
277 | "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + | 277 | "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + |
278 | e + "' attached to this exception", e); | 278 | e + "' attached to this exception", e);*/ |
279 | // Don't throw a fatal exception here, instead, return Null and handle it in the caller. | ||
280 | // Reason is, on systems such as OSgrid it has occured that known hostnames stop | ||
281 | // resolving and thus make surrounding regions crash out with this exception. | ||
282 | return null; | ||
279 | } | 283 | } |
280 | 284 | ||
281 | return new IPEndPoint(ia, m_internalEndPoint.Port); | 285 | return new IPEndPoint(ia, m_internalEndPoint.Port); |
@@ -333,6 +337,12 @@ namespace OpenSim.Services.Interfaces | |||
333 | if (kvp.ContainsKey("regionName")) | 337 | if (kvp.ContainsKey("regionName")) |
334 | RegionName = (string)kvp["regionName"]; | 338 | RegionName = (string)kvp["regionName"]; |
335 | 339 | ||
340 | if (kvp.ContainsKey("access")) | ||
341 | { | ||
342 | byte access = Convert.ToByte((string)kvp["access"]); | ||
343 | Maturity = (int)Util.ConvertAccessLevelToMaturity(access); | ||
344 | } | ||
345 | |||
336 | if (kvp.ContainsKey("serverIP")) | 346 | if (kvp.ContainsKey("serverIP")) |
337 | { | 347 | { |
338 | //int port = 0; | 348 | //int port = 0; |