aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Interfaces/IGridService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Interfaces/IGridService.cs')
-rw-r--r--OpenSim/Services/Interfaces/IGridService.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs
index 77230a3..cce8f2c 100644
--- a/OpenSim/Services/Interfaces/IGridService.cs
+++ b/OpenSim/Services/Interfaces/IGridService.cs
@@ -260,9 +260,13 @@ namespace OpenSim.Services.Interfaces
260 } 260 }
261 catch (SocketException e) 261 catch (SocketException e)
262 { 262 {
263 throw new Exception( 263 /*throw new Exception(
264 "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + 264 "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" +
265 e + "' attached to this exception", e); 265 e + "' attached to this exception", e);*/
266 // Don't throw a fatal exception here, instead, return Null and handle it in the caller.
267 // Reason is, on systems such as OSgrid it has occured that known hostnames stop
268 // resolving and thus make surrounding regions crash out with this exception.
269 return null;
266 } 270 }
267 271
268 return new IPEndPoint(ia, m_internalEndPoint.Port); 272 return new IPEndPoint(ia, m_internalEndPoint.Port);
@@ -320,6 +324,12 @@ namespace OpenSim.Services.Interfaces
320 if (kvp.ContainsKey("regionName")) 324 if (kvp.ContainsKey("regionName"))
321 RegionName = (string)kvp["regionName"]; 325 RegionName = (string)kvp["regionName"];
322 326
327 if (kvp.ContainsKey("access"))
328 {
329 byte access = Convert.ToByte((string)kvp["access"]);
330 Maturity = (int)Util.ConvertAccessLevelToMaturity(access);
331 }
332
323 if (kvp.ContainsKey("serverIP")) 333 if (kvp.ContainsKey("serverIP"))
324 { 334 {
325 //int port = 0; 335 //int port = 0;