aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
index 8076fab..f86eba3 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
@@ -135,6 +135,8 @@ namespace OpenSim.Services.Connectors.SimianGrid
135 135
136 public string RegisterRegion(UUID scopeID, GridRegion regionInfo) 136 public string RegisterRegion(UUID scopeID, GridRegion regionInfo)
137 { 137 {
138 IPEndPoint ext = regionInfo.ExternalEndPoint;
139 if (ext == null) return "Region registration for " + regionInfo.RegionName + " failed: Could not resolve EndPoint";
138 // Generate and upload our map tile in PNG format to the SimianGrid AddMapTile service 140 // Generate and upload our map tile in PNG format to the SimianGrid AddMapTile service
139 Scene scene; 141 Scene scene;
140 if (m_scenes.TryGetValue(regionInfo.RegionID, out scene)) 142 if (m_scenes.TryGetValue(regionInfo.RegionID, out scene))
@@ -150,7 +152,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
150 { "ServerURI", OSD.FromString(regionInfo.ServerURI) }, 152 { "ServerURI", OSD.FromString(regionInfo.ServerURI) },
151 { "InternalAddress", OSD.FromString(regionInfo.InternalEndPoint.Address.ToString()) }, 153 { "InternalAddress", OSD.FromString(regionInfo.InternalEndPoint.Address.ToString()) },
152 { "InternalPort", OSD.FromInteger(regionInfo.InternalEndPoint.Port) }, 154 { "InternalPort", OSD.FromInteger(regionInfo.InternalEndPoint.Port) },
153 { "ExternalAddress", OSD.FromString(regionInfo.ExternalEndPoint.Address.ToString()) }, 155 { "ExternalAddress", OSD.FromString(ext.Address.ToString()) },
154 { "ExternalPort", OSD.FromInteger(regionInfo.ExternalEndPoint.Port) }, 156 { "ExternalPort", OSD.FromInteger(regionInfo.ExternalEndPoint.Port) },
155 { "MapTexture", OSD.FromUUID(regionInfo.TerrainImage) }, 157 { "MapTexture", OSD.FromUUID(regionInfo.TerrainImage) },
156 { "Access", OSD.FromInteger(regionInfo.Access) }, 158 { "Access", OSD.FromInteger(regionInfo.Access) },